MaterialThemesManager class

Mix-in DiagnosticableTreeMixin to have access to debugFillProperties for the devtool

Mixed in types

Constructors

MaterialThemesManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isDarkModeEnabled bool
getter/setter pair
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
colorPalette() ColorPalette
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Makes MaterialThemesManager readable inside the devtools by listing all of its properties
override
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
getBackgroundGradient(BackgroundGradientType? type, {AlignmentGeometry? begin, AlignmentGeometry? end, List<double>? stops, List<double>? opacities, TileMode? tileMode, GradientTransform? transform}) Widget
getBackgroundRadialGradient(BackgroundGradientType? type, {AlignmentGeometry? center, double? radius, List<double>? stops, List<double>? opacities, TileMode? tileMode, AlignmentGeometry? focal, double? focalRadius, GradientTransform? transform}) Widget
getBackgroundSweepGradient(BackgroundGradientType? type, {AlignmentGeometry? center, double? startAngle, double? endAngle, List<double>? stops, List<double>? opacities, TileMode? tileMode, GradientTransform? transform}) Widget
getBoxDecorationShadow({Color? color = Colors.transparent, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(20.0)), ShadowType? shadowType = ShadowType.DARK, LightSourcePosition? lightSourcePosition = LightSourcePosition.TOP_LEFT, ShadowIntensity? shadowIntensity = ShadowIntensity.NORMAL, ShadowHardness? shadowHardness = ShadowHardness.NORMAL}) BoxDecoration
getBoxShadow({ShadowType? shadowType = ShadowType.DARK, LightSourcePosition? lightSourcePosition = LightSourcePosition.TOP_LEFT, ShadowIntensity? shadowIntensity = ShadowIntensity.NORMAL, ShadowHardness? shadowHardness = ShadowHardness.NORMAL}) List<BoxShadow>
getPrimaryDarkTheme({Emphasis emphasis = Emphasis.NONE, ElevationLevel elevationLevel = ElevationLevel.LOW, IconSize iconSize = IconSize.SMALL}) ThemeData
getPrimaryLightTheme({Emphasis emphasis = Emphasis.NONE, ElevationLevel elevationLevel = ElevationLevel.LOW, IconSize iconSize = IconSize.SMALL}) ThemeData
getPrimaryTheme({Emphasis emphasis = Emphasis.NONE, ElevationLevel elevationLevel = ElevationLevel.LOW, IconSize iconSize = IconSize.SMALL}) ThemeData
getTheme(ThemeGroupType? type, {Emphasis emphasis = Emphasis.NONE, ElevationLevel elevationLevel = ElevationLevel.LOW, IconSize iconSize = IconSize.SMALL, dynamic groupThemeType}) ThemeData
getThemeMode() ThemeMode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toggleDarkModeEnabled() → void
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
updateColorPalette(ColorPalette colorPalette) → dynamic
updateDarkModeEnabled(bool isDarkModeEnabled) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited