ScrollPhysics class Null safety
Constructors
- ScrollPhysics({ScrollPhysics? parent})
-
constfactory
- ScrollPhysics.alwaysScrollable({ScrollPhysics? parent})
-
constfactory
- ScrollPhysics.bouncingScroll({@Default(ScrollDecelerationRate.normal) ScrollDecelerationRate decelerationRate, ScrollPhysics? parent})
-
constfactory
- ScrollPhysics.clamping({ScrollPhysics? parent})
-
constfactory
- ScrollPhysics.fixedExtent({ScrollPhysics? parent})
-
constfactory
-
ScrollPhysics.fromJson(Map<
String, Object?> json) -
factory
- ScrollPhysics.neverScrollable({ScrollPhysics? parent})
-
constfactory
- ScrollPhysics.pageScroll({ScrollPhysics? parent})
-
constfactory
- ScrollPhysics.rangeMaintaining({ScrollPhysics? parent})
-
constfactory
Properties
-
copyWith
→ $ScrollPhysicsCopyWith<
ScrollPhysics> -
@JsonKey(ignore: true), read-only, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- parent → ScrollPhysics?
-
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ScrollPhysics value), {required TResult rangeMaintaining(RangeMaintainingScrollPhysics value), required TResult bouncingScroll(BouncingScrollScrollPhysics value), required TResult clamping(ClampingScrollPhysics value), required TResult alwaysScrollable(AlwaysScrollableScrollPhysics value), required TResult neverScrollable(NeverScrollableScrollPhysics value), required TResult pageScroll(PageScrollPhysics value), required TResult fixedExtent(FixedExtentScrollPhysics value)}) → TResult -
@optionalTypeArgs, inherited
-
mapOrNull<
TResult extends Object?> (TResult? $default(_ScrollPhysics value)?, {TResult? rangeMaintaining(RangeMaintainingScrollPhysics value)?, TResult? bouncingScroll(BouncingScrollScrollPhysics value)?, TResult? clamping(ClampingScrollPhysics value)?, TResult? alwaysScrollable(AlwaysScrollableScrollPhysics value)?, TResult? neverScrollable(NeverScrollableScrollPhysics value)?, TResult? pageScroll(PageScrollPhysics value)?, TResult? fixedExtent(FixedExtentScrollPhysics value)?}) → TResult? -
@optionalTypeArgs, inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_ScrollPhysics value)?, {TResult rangeMaintaining(RangeMaintainingScrollPhysics value)?, TResult bouncingScroll(BouncingScrollScrollPhysics value)?, TResult clamping(ClampingScrollPhysics value)?, TResult alwaysScrollable(AlwaysScrollableScrollPhysics value)?, TResult neverScrollable(NeverScrollableScrollPhysics value)?, TResult pageScroll(PageScrollPhysics value)?, TResult fixedExtent(FixedExtentScrollPhysics value)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
maybeWhen<
TResult extends Object?> (TResult $default(ScrollPhysics? parent)?, {TResult rangeMaintaining(ScrollPhysics? parent)?, TResult bouncingScroll(ScrollDecelerationRate decelerationRate, ScrollPhysics? parent)?, TResult clamping(ScrollPhysics? parent)?, TResult alwaysScrollable(ScrollPhysics? parent)?, TResult neverScrollable(ScrollPhysics? parent)?, TResult pageScroll(ScrollPhysics? parent)?, TResult fixedExtent(ScrollPhysics? parent)?, required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(ScrollPhysics? parent), {required TResult rangeMaintaining(ScrollPhysics? parent), required TResult bouncingScroll(ScrollDecelerationRate decelerationRate, ScrollPhysics? parent), required TResult clamping(ScrollPhysics? parent), required TResult alwaysScrollable(ScrollPhysics? parent), required TResult neverScrollable(ScrollPhysics? parent), required TResult pageScroll(ScrollPhysics? parent), required TResult fixedExtent(ScrollPhysics? parent)}) → TResult -
@optionalTypeArgs, inherited
-
whenOrNull<
TResult extends Object?> (TResult? $default(ScrollPhysics? parent)?, {TResult? rangeMaintaining(ScrollPhysics? parent)?, TResult? bouncingScroll(ScrollDecelerationRate decelerationRate, ScrollPhysics? parent)?, TResult? clamping(ScrollPhysics? parent)?, TResult? alwaysScrollable(ScrollPhysics? parent)?, TResult? neverScrollable(ScrollPhysics? parent)?, TResult? pageScroll(ScrollPhysics? parent)?, TResult? fixedExtent(ScrollPhysics? parent)?}) → TResult? -
@optionalTypeArgs, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited