FLToastDefaults constructor
const
FLToastDefaults({
- Duration showDuration = const Duration(milliseconds: 1500),
- Color darkColor = Colors.white,
- Color darkBackgroundColor = Colors.black87,
- double backgroundOpacity = 0.8,
- Color lightColor = const Color(0xFF2F2F2F),
- Color lightBackgroundColor = const Color(0xFFE0E0E0),
- FLToastPosition position = FLToastPosition.center,
- FLToastStyle style = FLToastStyle.dark,
- bool dismissOtherToast = true,
- bool hideWithTap = true,
- TextDirection textDirection = TextDirection.ltr,
- double topOffset = kToolbarHeight + 10,
- double bottomOffset = 10,
Implementation
const FLToastDefaults({
this.showDuration = const Duration(milliseconds: 1500),
this.darkColor = Colors.white,
this.darkBackgroundColor = Colors.black87,
this.backgroundOpacity = 0.8,
this.lightColor = const Color(0xFF2F2F2F),
this.lightBackgroundColor = const Color(0xFFE0E0E0),
this.position = FLToastPosition.center,
this.style = FLToastStyle.dark,
this.dismissOtherToast = true,
this.hideWithTap = true,
this.textDirection = TextDirection.ltr,
this.topOffset = kToolbarHeight + 10,
this.bottomOffset = 10,
});