WildnessProperties class final

Annotations

Constructors

WildnessProperties({Brightness? forceThemeMode, Configuration components = const Configuration(), Configuration resources = const Configuration(), ScrollPhysics physics = const ClampingScrollPhysics(), double minScaleFactor = 0.5, double maxScaleFactor = 1.2})
Creates a WildnessProperties that's used to configure wildnessUI
const
WildnessProperties.fromTheme({Brightness? forceThemeMode, Components? lightComponents, Components? darkComponents, Resources? lightResources, Resources? darkResources, ScrollPhysics physics = const ClampingScrollPhysics(), double minScaleFactor = 0.5, double maxScaleFactor = 1.2})
Creates a WildnessProperties from Components and optional Resources for light and dark modes.
factory

Properties

forceThemeMode → Brightness?
By default uses a system config if you pass a mode, it will be forced to this one.
final
hashCode → int
The hash code for this object.
no setterinherited
maxScaleFactor → double
final
minScaleFactor → double
final
physics → ScrollPhysics
The default Scroll physics for this theme.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

components({Brightness? brightness}) → Map<Type, WildnessBase>
Convert the _components passed to WildnessProperties to the stored Wildness.components map, where each entry's key consists of the kind type, theme resolved.
copyWith({Brightness? forceThemeMode, Configuration? components, Configuration? resources, ScrollPhysics? physics, double? minScaleFactor, double? maxScaleFactor}) → WildnessProperties
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resources({Brightness? brightness}) → Map<Type, WildnessBase>
Convert the _resources passed to WildnessProperties to the stored resources map, where each entry's key consists of the kind type, theme resolved.
toString() → String
A string representation of this object.
inherited

Operators

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