FLToastDefaults constructor

const FLToastDefaults({
  1. Duration showDuration = const Duration(milliseconds: 1500),
  2. Color darkColor = Colors.white,
  3. Color darkBackgroundColor = Colors.black87,
  4. double backgroundOpacity = 0.8,
  5. Color lightColor = const Color(0xFF2F2F2F),
  6. Color lightBackgroundColor = const Color(0xFFE0E0E0),
  7. FLToastPosition position = FLToastPosition.center,
  8. FLToastStyle style = FLToastStyle.dark,
  9. bool dismissOtherToast = true,
  10. bool hideWithTap = true,
  11. TextDirection textDirection = TextDirection.ltr,
  12. double topOffset = kToolbarHeight + 10,
  13. 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,
});