RefreshTriggerTheme class

Theme configuration for RefreshTrigger.

Example usage:

ComponentTheme(
  data: RefreshTriggerTheme(
    minExtent: 100.0,
    maxExtent: 200.0,
    curve: Curves.easeInOut,
    completeDuration: Duration(milliseconds: 800),
  ),
  child: RefreshTrigger(
    onRefresh: () async {
      // Refresh logic here
    },
    child: ListView(
      children: [
        // List items
      ],
    ),
  ),
)

Constructors

RefreshTriggerTheme({double? minExtent, double? maxExtent, RefreshIndicatorBuilder? indicatorBuilder, Curve? curve, Duration? completeDuration})
Creates a RefreshTriggerTheme.
const

Properties

completeDuration → Duration?
Duration for the completion animation.
final
curve → Curve?
Animation curve for the refresh trigger.
final
hashCode → int
The hash code for this object.
no setteroverride
indicatorBuilder → RefreshIndicatorBuilder?
Builder for the refresh indicator.
final
maxExtent → double?
Maximum pull extent allowed.
final
minExtent → double?
Minimum pull extent required to trigger refresh.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ValueGetter<double?>? minExtent, ValueGetter<double?>? maxExtent, ValueGetter<RefreshIndicatorBuilder?>? indicatorBuilder, ValueGetter<Curve?>? curve, ValueGetter<Duration?>? completeDuration}) → RefreshTriggerTheme
Creates a copy of this theme but with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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