ToastFile class abstract

An abstract class that provides a method to display toast messages.

The ToastFile class defines a method for showing toast notifications with customizable parameters such as message text, background color, position, duration, text style, and corner radius.

Example usage:

class MyToast extends ToastFile {
  @override
  void toastMsg({
    required String msg,
    Color? backgroundColor,
    ToastPosition? position,
    Duration? duration,
    TextStyle? textStyle,
    double? radius,
  }) {
    super.toastMsg(
      msg: msg,
      backgroundColor: backgroundColor,
      position: position,
      duration: duration,
      textStyle: textStyle,
      radius: radius,
    );
  }
}

Constructors

ToastFile.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toastMsg({required String msg, Color? backgroundColor, ToastPosition? position, Duration? duration, TextStyle? textStyle, double? radius, TextOverflow? textOverflow, int? textMaxLines, TextAlign? textAlign, TextDirection? textDirection}) → void
Displays a customizable toast message.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited