FlyNotifier class
Controller for managing Fly theme data with runtime updates
- Inheritance
-
- Object
- ChangeNotifier
- FlyNotifier
Constructors
- FlyNotifier({FlyThemeData? initialData})
Properties
- data → FlyThemeData
-
Current theme data
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
merge(
FlyThemeData other) → void - Merge new theme data with current data
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
putBreakpoint(
String key, double value) → void - Put a breakpoint value
-
putColor(
String key, Color value) → void - Put a color value
-
putFont(
String key, List< String> value) → void - Put a font value
-
putFontWeight(
String key, FontWeight value) → void - Put a font weight value
-
putLeading(
String key, double value) → void - Put a leading value
-
putRadius(
String key, double value) → void - Put a radius value
-
putSpacing(
String key, num value) → void - Put a spacing value
-
putTextStyle(
String key, TextStyle value) → void - Put a text style value
-
putTracking(
String key, double value) → void - Put a tracking value
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
set(
FlyThemeData newData) → void - Set new theme data
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
FlyThemeData updater(FlyThemeData current)) → void - Update theme data using a function
-
updateBreakpoint(
FlyBreakpointToken updater(FlyBreakpointToken current)) → void - Update breakpoint token
-
updateColors(
FlyColorToken updater(FlyColorToken current)) → void - Update colors token
-
updateFont(
FlyFontToken updater(FlyFontToken current)) → void - Update font token
-
updateFontWeight(
FlyFontWeightToken updater(FlyFontWeightToken current)) → void - Update font weight token
-
updateLeading(
FlyLeadingToken updater(FlyLeadingToken current)) → void - Update leading token
-
updateRadius(
FlyRadiusToken updater(FlyRadiusToken current)) → void - Update radius token
-
updateSpacing(
FlySpacingToken updater(FlySpacingToken current)) → void - Update spacing token
-
updateTextStyle(
FlyTextStyleToken updater(FlyTextStyleToken current)) → void - Update text style token
-
updateTracking(
FlyTrackingToken updater(FlyTrackingToken current)) → void - Update tracking token
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited