YaruPageIndicatorThemeData class
Defines default property values for descendant YaruPageIndicator widgets.
Descendant widgets obtain the current YaruPageIndicatorThemeData object
using YaruPageIndicatorTheme.of(context)
. Instances of YaruPageIndicatorThemeData
can be customized with YaruPageIndicatorThemeData.copyWith.
- Inheritance
-
- Object
- ThemeExtension<
YaruPageIndicatorThemeData> - YaruPageIndicatorThemeData
- Mixed in types
- Annotations
Constructors
-
YaruPageIndicatorThemeData({YaruPageIndicatorItemBuilder<
Size> ? itemSizeBuilder, YaruPageIndicatorItemBuilder<Widget> ? itemBuilder, MaterialStateProperty<MouseCursor?> ? mouseCursor, YaruPageIndicatorTextBuilder? textBuilder, TextStyle? textStyle, YaruPageIndicatorLayoutDelegate? layoutDelegate}) -
Creates a theme that can be used for YaruPageIndicatorTheme.data.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
itemBuilder
→ YaruPageIndicatorItemBuilder<
Widget> ? -
Returns the Widget of a given item.
final
-
itemSizeBuilder
→ YaruPageIndicatorItemBuilder<
Size> ? -
Returns the Size of a given item.
These values are used to compute the layout using layoutDelegate.
final
- layoutDelegate → YaruPageIndicatorLayoutDelegate?
-
Controls the items spacing, depending on the vertical constraints.
final
-
mouseCursor
→ MaterialStateProperty<
MouseCursor?> ? -
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textBuilder → YaruPageIndicatorTextBuilder?
-
Returns the Widget of the text based indicator.
Be careful to use something small enough to fit in a small vertical constraints.
final
- textStyle → TextStyle?
-
Text style used to customize the default text based indicator.
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{YaruPageIndicatorItemBuilder< Size> ? itemSizeBuilder, YaruPageIndicatorItemBuilder<Widget> ? itemBuilder, MaterialStateProperty<MouseCursor?> ? mouseCursor, YaruPageIndicatorTextBuilder? textBuilder, TextStyle? textStyle, YaruPageIndicatorLayoutDelegate? layoutDelegate}) → YaruPageIndicatorThemeData -
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< YaruPageIndicatorThemeData> ? other, double t) → ThemeExtension<YaruPageIndicatorThemeData> -
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