FFSnackBarAction constructor
FFSnackBarAction({
- FFValue? textMessage,
- FFText? textStyle,
- @Deprecated('This field is deprecated.') FFColor? legacyBackgroundColor,
- double? durationMillis,
- FFSnackBarAction_FFSnackBarSubAction? subAction,
- bool? shouldHidePreviousSnackbar,
- FFValue? backgroundColor,
Implementation
factory FFSnackBarAction({
FFValue? textMessage,
FFText? textStyle,
@$core.Deprecated('This field is deprecated.')
FFColor? legacyBackgroundColor,
$core.double? durationMillis,
FFSnackBarAction_FFSnackBarSubAction? subAction,
$core.bool? shouldHidePreviousSnackbar,
FFValue? backgroundColor,
}) {
final result = create();
if (textMessage != null) result.textMessage = textMessage;
if (textStyle != null) result.textStyle = textStyle;
if (legacyBackgroundColor != null)
result.legacyBackgroundColor = legacyBackgroundColor;
if (durationMillis != null) result.durationMillis = durationMillis;
if (subAction != null) result.subAction = subAction;
if (shouldHidePreviousSnackbar != null)
result.shouldHidePreviousSnackbar = shouldHidePreviousSnackbar;
if (backgroundColor != null) result.backgroundColor = backgroundColor;
return result;
}