Sheet class
Register your sheet to use, another method is SheetProvider. You can register sheet and call it in any workplace in your app.
Properties
Methods
-
manager<
T> () → SheetManager< T> ? - return SheetManager<T>, null if it not register.
-
managerNonNull<
T> () → SheetManager< T> - return SheetManager<T>, throw SheetNotRegisterException if it not register.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
Return a single ton of Sheet
no setter
Static Methods
-
apply<
T> (String name) → void -
Change the current sheet of
T
sheet -
clear<
T> () → void -
Clear all sheets in
T
sheet manager, theT
sheet was not unregister, but you must be re-register if want to useT
sheet a again -
collectionClear(
) → void -
Remove all registered sheet, you must be re-register if want to use
T
sheet a again -
isRegistered<
T> ([String? name]) → bool -
return true if
T
sheet is registered and existname
ifname
!= null -
read<
T> ([String? name]) → T -
return current sheet of
T
sheet ifname
== null, else returnT
sheet withname
, throw SheetNotFoundException ifname
does not exists -
register<
T> (T value, {String name = ''}) → void -
Register sheet with
T
type, withvalue
instance with name -
registerLazy<
T> (Creator< T> value, {String name = ''}) → void -
Register sheet with
T
type, withvalue
creator with name -
registerLazyCollection<
T> (Map< String, Creator< create) → voidT> > -
Register sheet with
T
type, with many creator in one times -
setup(
{required bool hotReload}) → dynamic -
setup
hotReload
field in one time, if the Sheet was setup or call any method before, the [hotReload cannot change -
unregister<
T> ([String name = '']) → void -
Unregister sheet with
T
type, after that, you must be re-register if want to useT
sheet a again