YaruToggleButtonThemeData class

Defines default property values for descendant ToggleButton widgets.

Descendant widgets obtain the current YaruToggleButtonThemeData object using YaruToggleButtonTheme.of(context). Instances of YaruToggleButtonThemeData can be customized with YaruToggleButtonThemeData.copyWith.

Inheritance
Mixed in types
Annotations

Constructors

YaruToggleButtonThemeData({double? horizontalSpacing, double? verticalSpacing, TextStyle? titleStyle, TextStyle? subtitleStyle, MaterialStateProperty<MouseCursor?>? mouseCursor})
Creates a theme that can be used for YaruToggleButtonTheme.data.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
horizontalSpacing double?
The spacing between the indicator and the title.
final
mouseCursor MaterialStateProperty<MouseCursor?>?
The mouse cursor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleStyle TextStyle?
The style of the subtitle text.
final
titleStyle TextStyle?
The style of the title text.
final
type Object
The extension's type.
no setterinherited
verticalSpacing double?
The spacing between the title and the subtitle.
final

Methods

copyWith({double? horizontalSpacing, double? verticalSpacing, TextStyle? titleStyle, TextStyle? subtitleStyle, MaterialStateProperty<MouseCursor?>? mouseCursor}) YaruToggleButtonThemeData
Creates a copy with the given fields replaced with new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
lerp(covariant ThemeExtension<YaruToggleButtonThemeData>? other, double t) ThemeExtension<YaruToggleButtonThemeData>
Linearly interpolate with another ThemeExtension object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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
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