PreviewThemeData class base
A collection of ThemeData and CupertinoThemeData instances for use in widget previews.
Constructors
- PreviewThemeData.new({ThemeData? materialLight, ThemeData? materialDark, CupertinoThemeData? cupertinoLight, CupertinoThemeData? cupertinoDark})
-
Creates a collection of ThemeData and CupertinoThemeData instances
for use in widget previews.
const
Properties
- cupertinoDark → CupertinoThemeData?
-
The Cupertino CupertinoThemeData to apply when dark mode is enabled.
final
- cupertinoLight → CupertinoThemeData?
-
The Cupertino CupertinoThemeData to apply when light mode is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- materialDark → ThemeData?
-
The Material ThemeData to apply when dark mode is enabled.
final
- materialLight → ThemeData?
-
The Material ThemeData to apply when light mode is enabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
themeForBrightness(
Brightness brightness) → (ThemeData?, CupertinoThemeData?) -
Returns the pair of ThemeData and CupertinoThemeData corresponding to
the value of
brightness
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited