FSheetStyle class
A sheet's style.
- Mixed-in types
Constructors
- FSheetStyle({required Color barrierColor, required Color backgroundColor, Duration enterDuration = const Duration(milliseconds: 200), Duration exitDuration = const Duration(milliseconds: 200), double flingVelocity = 700, double closeProgressThreshold = 0.5})
-
Creates a FSheetStyle.
const
- FSheetStyle.inherit({required FColorScheme colorScheme})
- Creates a FSheetStyle that inherits its colors from the given FColorScheme.
Properties
- backgroundColor → Color
-
The sheet's background color.
final
- barrierColor → Color
-
The barrier's color.
final
- closeProgressThreshold → double
-
The threshold for determining whether the sheet is closing. Defaults to 0.5.
final
- enterDuration → Duration
-
The entrance duration. Defaults to 200ms.
final
- exitDuration → Duration
-
The exit duration. Defaults to 200ms.
final
- flingVelocity → double
-
The minimum velocity to initiate a fling. Defaults to 700.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Color? barrierColor, Color? backgroundColor, Duration? enterDuration, Duration? exitDuration, double? flingVelocity, double? closeProgressThreshold}) → FSheetStyle - Returns a new FSheetStyle with the given properties replaced.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
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