FToastStyle constructor

FToastStyle({
  1. required BoxDecoration decoration,
  2. required IconThemeData iconStyle,
  3. required TextStyle titleTextStyle,
  4. required TextStyle descriptionTextStyle,
  5. BoxConstraints constraints = const BoxConstraints(maxHeight: 250, maxWidth: 400),
  6. EdgeInsetsGeometry padding = const EdgeInsets.all(16),
  7. ImageFilter? backgroundFilter,
  8. double iconSpacing = 10,
  9. double titleSpacing = 1,
  10. double suffixSpacing = 12,
  11. FToastMotion motion = const FToastMotion(),
})

Creates a FToastStyle.

Implementation

FToastStyle({
  required this.decoration,
  required this.iconStyle,
  required this.titleTextStyle,
  required this.descriptionTextStyle,
  this.constraints = const BoxConstraints(maxHeight: 250, maxWidth: 400),
  this.padding = const EdgeInsets.all(16),
  this.backgroundFilter,
  this.iconSpacing = 10,
  this.titleSpacing = 1,
  this.suffixSpacing = 12,
  this.motion = const FToastMotion(),
});