SnackBar class Null safety
- Annotations
-
- @freezed
Constructors
- SnackBar({Key? key, required Widget content, Color? backgroundColor, double? elevation, EdgeInsets? margin, EdgeInsets? padding, double? width, ShapeBorder? shape, SnackBarBehavior? behavior, SnackBarAction? action, bool? showCloseIcon, Color? closeIconColor, @Default(Duration(milliseconds: 4000)) Duration duration, Callback? onVisible, @Default(DismissDirection.down) DismissDirection dismissDirection, @Default(Clip.hardEdge) Clip clipBehavior})
-
constfactory
-
SnackBar.fromJson(Map<
String, Object?> json) -
factory
Properties
- action → SnackBarAction?
-
read-only, inherited
- backgroundColor → Color?
-
read-only, inherited
- behavior → SnackBarBehavior?
-
read-only, inherited
- clipBehavior → Clip
-
read-only, inherited
- closeIconColor → Color?
-
read-only, inherited
- content → Widget
-
read-only, inherited
-
copyWith
→ $SnackBarCopyWith<
SnackBar> -
@JsonKey(ignore: true), read-only, inherited
- dismissDirection → DismissDirection
-
read-only, inherited
- duration → Duration
-
read-only, inherited
- elevation → double?
-
read-only, inherited
- hashCode → int
-
The hash code for this object.
read-only, inherited
- key → Key?
-
read-only, inherited
- margin → EdgeInsets?
-
read-only, inherited
- onVisible → Callback?
-
read-only, inherited
- padding → EdgeInsets?
-
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- shape → ShapeBorder?
-
read-only, inherited
- showCloseIcon → bool?
-
read-only, inherited
- width → double?
-
read-only, inherited
Methods
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited