WxSheetThemeData<T extends WxSheetThemeData<T> > class
Defines the visual properties of Sheet.
Descendant widgets obtain the current WxSheetThemeData object using
SheetTheme.of(context). Instances of WxSheetThemeData
can be customized with WxSheetThemeData.copyWith or WxSheetThemeData.merge.
- Inheritance
-
- Object
- ThemeExtension<
T> - WxSheetThemeData
- Mixed-in types
- Implementers
Constructors
-
WxSheetThemeData({bool? animated, Curve? curve, Duration? duration, WxSheetVariant? variant, WxSheetSize? size, Color? severity, WxSheetStyle style = const WxSheetStyle(), WxSheetStyleResolver<
WxSheetStyle> ? styleResolver, bool? overlay, bool? feedback, bool? focusable, bool? disabled, bool? inherits, MouseCursor? mouseCursor, Widget? leading, Widget? trailing}) -
Creates a theme data that can be used for
SheetTheme.const -
WxSheetThemeData.from([WxSheetThemeData<
T> ? other, WxSheetThemeData<T> fallback = const WxSheetThemeData()]) - Creates a WxSheetThemeData from another one that probably null.
Properties
- animated → bool?
-
Whether to animate the sheet decoration.
final
- curve → Curve?
-
The curve to apply when animating the parameters of sheet widget.
final
- disabled → bool?
-
Whether the descent WxAnchor is disabled for interaction.
final
- duration → Duration?
-
The duration over which to animate the parameters of sheet widget.
final
- effectiveStyle → WxSheetStyle
-
Retrieves the effective style based on the provided properties.
no setter
- feedback → bool?
-
Whether detected gestures should provide acoustic and/or haptic feedback.
final
- focusable → bool?
-
If true, this widget may request the primary focus.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- inherits → bool?
-
Whether the sheet inherits variant, severity, and size from its parent theme.
final
- leading → Widget?
-
A custom widget to display prior to the sheet's
child.final - mouseCursor → MouseCursor?
-
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
- overlay → bool?
-
Whether the overlay is enabled or not
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → Color?
-
Type of the sheet severity
final
- size → WxSheetSize?
-
Type of the sheet size
final
- style → WxSheetStyle
-
The WxSheetStyle to be applied to the sheet widget
final
-
styleResolver
→ WxSheetStyleResolver<
WxSheetStyle> ? -
Defines a function used to resolve
the sheet style based on the variant and severity.
final
- trailing → Widget?
-
A custom widget to display next to the sheet's
child.final - type → Object
-
The extension's type.
no setterinherited
- variant → WxSheetVariant?
-
Type of the sheet variant
final
Methods
-
copyWith(
{bool? animated, Curve? curve, Duration? duration, WxSheetVariant? variant, WxSheetSize? size, Color? severity, WxSheetStyle? style, WxSheetStyleResolver< WxSheetStyle> ? styleResolver, bool? overlay, bool? feedback, bool? focusable, bool? disabled, bool? inherits, MouseCursor? mouseCursor, Widget? leading, Widget? trailing}) → WxSheetThemeData<T> -
Creates a copy of this WxSheetThemeData 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 WxSheetThemeData< T> ? other, double t) → WxSheetThemeData<T> -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
WxSheetThemeData< T> ? other) → WxSheetThemeData<T> - Creates a copy of this WxSheetThemeData 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(
WxSheetStyleResolverData data) → WxSheetStyle - Return WxSheetStyle 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