FToastStyle class

The toast's style.

Implemented types
Mixed-in types
Available extensions

Constructors

FToastStyle.new({required BoxDecoration decoration, required IconThemeData iconStyle, required TextStyle titleTextStyle, required TextStyle descriptionTextStyle, Duration enterExitDuration = const Duration(milliseconds: 400), Curve enterCurve = Curves.easeOutCubic, Curve exitCurve = Curves.easeOutCubic, double entranceExitOpacity = 0.0, Duration transitionDuration = const Duration(milliseconds: 400), Curve transitionCurve = Curves.easeOutCubic, BoxConstraints constraints = const BoxConstraints(maxHeight: 250, maxWidth: 400), EdgeInsetsGeometry padding = const EdgeInsets.all(16), double iconSpacing = 10, double titleSpacing = 1, double suffixSpacing = 12})
Creates a FToastStyle.
FToastStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
Creates a FToastStyle that inherits its properties.

Properties

constraints BoxConstraints
The toast's constraints. Defaults to BoxConstraints(maxHeight: 250, maxWidth: 400).
final
decoration BoxDecoration
The toast's decoration.
final
descriptionTextStyle TextStyle
The description's text style.
final
enterCurve Curve
The toast's entrance animation curve. Defaults to Curves.easeOutCubic.
final
enterExitDuration Duration
The toast's entrance & exit animation duration. Defaults to 400ms.
final
entranceExitOpacity double
The toast's initial opacity when it enters, and the target opacity when it exits.
final
exitCurve Curve
The toast's exit animation curve. Defaults to Curves.easeOutCubic.
final
hashCode int
The hash code for this object.
no setterinherited
iconSpacing double
The spacing between the icon and the title. Defaults to 10.0.
final
iconStyle IconThemeData
The style of the toast's prefix icon.
final
padding EdgeInsetsGeometry
The toast content's padding. Defaults to EdgeInsets.all(16).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixSpacing double
The spacing between the icon and the title. Defaults to 12.0.
final
titleSpacing double
The spacing between the title and description Defaults to 5.0.
final
titleTextStyle TextStyle
The title's text style.
final
transitionCurve Curve
The toast's transition animation curve. Defaults to Curves.easeInOutCubic.
final
transitionDuration Duration
The toast's transition between indexes animation duration. Defaults to 400ms.
final

Methods

copyWith({Duration? enterExitDuration, Curve? enterCurve, Curve? exitCurve, double? entranceExitOpacity, Duration? transitionDuration, Curve? transitionCurve, BoxConstraints? constraints, BoxDecoration? decoration, EdgeInsetsGeometry? padding, IconThemeData? iconStyle, double? iconSpacing, TextStyle? titleTextStyle, double? titleSpacing, TextStyle? descriptionTextStyle, double? suffixSpacing}) FToastStyle
Returns a copy of this FToastStyle 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 this T using the given function.

Operators

operator ==(Object other) bool
The equality operator.
inherited