FToasterStyle class
FToaster's style.
- Implemented types
- Mixed-in types
- Available extensions
Constructors
- FToasterStyle.new({required FToastStyle toastStyle, double max = 3, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 15), FToasterExpandBehavior expandBehavior = FToasterExpandBehavior.hoverOrPress, Duration expandHoverEnterDuration = const Duration(milliseconds: 200), Duration expandHoverExitDuration = const Duration(milliseconds: 300), double expandStartSpacing = 16, double expandSpacing = 10, Duration expandDuration = const Duration(milliseconds: 500), Curve expandCurve = Curves.easeInOutCubic, double collapsedProtrusion = 12, double collapsedScale = 0.9})
-
Creates a FToasterStyle.
const
- FToasterStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
- Creates a FToasterStyle that inherits its properties.
Properties
- collapsedProtrusion → double
-
The protrusion of the collapsed toasts behind the front toast. This is scaled by the number of toasts in
front of the toast.
final
- collapsedScale → double
-
The scaling factor pf the collapsed toasts behind the front toast. This is scaled by the number of toasts in
front of the toast.
final
- expandBehavior → FToasterExpandBehavior
-
The toaster's expansion behavior. Defaults to FToasterExpandBehavior.hoverOrPress.
final
- expandCurve → Curve
-
The expanding/collapsing animation curve. Defaults to Curves.easeInOutCubic.
final
- expandDuration → Duration
-
The expanding/collapsing animation duration. Defaults to 500ms.
final
- expandHoverEnterDuration → Duration
-
The duration to wait after entering the toaster before expanding the toasts. Defaults to 200ms.
final
- expandHoverExitDuration → Duration
-
The duration to wait after exiting the toaster before collapsing the toasts. Defaults to 300ms.
final
- expandSpacing → double
-
The spacing between the toasts when they are expanded. Defaults to 10.0.
final
- expandStartSpacing → double
-
The spacing below or above the toasts when they are expanded. Defaults to 16.0.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → double
-
The maximum number of entries shown per FToastAlignment. Defaults to to 3.
final
- padding → EdgeInsetsGeometry
-
The toaster's padding. Defaults to
EdgeInsets.symmetric(horizontal: 20, vertical: 15)
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toastStyle → FToastStyle
-
The contained toasts' style.
final
Methods
-
copyWith(
{double? max, EdgeInsetsGeometry? padding, FToasterExpandBehavior? expandBehavior, Duration? expandHoverEnterDuration, Duration? expandHoverExitDuration, double? expandStartSpacing, double? expandSpacing, Duration? expandDuration, Curve? expandCurve, double? collapsedProtrusion, double? collapsedScale, FToastStyle? toastStyle}) → FToasterStyle -
Returns a copy of this FToasterStyle with the given properties replaced.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
transform(
T function(T)) → T -
Available on T, provided by the FTransformables extension
Transform thisT
using the givenfunction
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited