show method

Future<bool?> show({
  1. required String message,
  2. Duration duration = const Duration(seconds: 2),
  3. DencendToastGravity? position,
  4. ToastStyle? style,
})

显示基本Toast消息

message 要显示的消息 duration 显示时长 position 显示位置 style 样式配置

Implementation

Future<bool?> show({
  required String message,
  Duration duration = const Duration(seconds: 2),
  DencendToastGravity? position,
  ToastStyle? style,
}) {
  return DencendToast.showToast(
    msg: message,
    toastDuration: duration,
    gravity: position,
    style: style,
  );
}