SheetThemeData class

Defines the visual properties of Sheet.

Descendant widgets obtain the current SheetThemeData object using SheetTheme.of(context). Instances of SheetThemeData can be customized with SheetThemeData.copyWith or SheetThemeData.merge.

Inheritance
Mixed in types
Implementers
Annotations

Constructors

SheetThemeData({required Curve curve, required Duration duration, required SheetStyle style, SheetStyleByVariant variantStyle = const {}, SheetStyleByVariant dangerStyle = const {}, SheetStyleByVariant warningStyle = const {}, SheetStyleByVariant successStyle = const {}, SheetStyleByVariant infoStyle = const {}})
Creates a theme data that can be used for SheetTheme.
const
SheetThemeData.from([SheetThemeData? other])
Creates a SheetThemeData from another one that probably null.

Properties

curve Curve
The curve to apply when animating the parameters of sheet widget.
final
dangerStyle SheetStyleByVariant
The SheetStyle to be applied to the sheet widget with danger severity
final
duration Duration
The duration over which to animate the parameters of sheet widget.
final
hashCode int
The hash code for this object.
no setteroverride
infoStyle SheetStyleByVariant
The SheetStyle to be applied to the sheet widget with info severity
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severityStyle Map<SheetSeverity, SheetStyleByVariant>
The SheetStyle to be applied to the sheet widget with severity
no setter
style SheetStyle
The SheetStyle to be applied to the sheet widget
final
successStyle SheetStyleByVariant
The SheetStyle to be applied to the sheet widget with success severity
final
type Object
The extension's type.
no setterinherited
variantStyle SheetStyleByVariant
The SheetStyle to be applied to the variant sheet widget
final
warningStyle SheetStyleByVariant
The SheetStyle to be applied to the sheet widget with warning severity
final

Methods

copyWith({Curve? curve, Duration? duration, SheetStyle? style, SheetStyleByVariant? variantStyle, SheetStyleByVariant? dangerStyle, SheetStyleByVariant? warningStyle, SheetStyleByVariant? successStyle, SheetStyleByVariant? infoStyle}) SheetThemeData
Creates a copy of this SheetThemeData but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(covariant ThemeExtension<SheetThemeData>? other, double t) SheetThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(SheetThemeData? other) SheetThemeData
Creates a copy of this SheetThemeData but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve({SheetVariant? variant, SheetSeverity? severity}) SheetStyle
Return SheetStyle that depends on variant and severity
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toMap() Map<String, dynamic>
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

defaults(BuildContext context) SheetThemeData
A SheetThemeData with some default values.
ios(BuildContext context) SheetThemeData
A SheetThemeData with ios default values.
m2(BuildContext context) SheetThemeData
A SheetThemeData with material 2 default values.
m3(BuildContext context) SheetThemeData
A SheetThemeData with material 3 default values.

Constants

fallback → const SheetThemeData
Create a SheetThemeData with some reasonable default values.