cancel method Null safety

Future<bool?> cancel()

Let say you have an active show Use this method to hide the toast immediately

Implementation

static Future<bool?> cancel() async {
  bool? res = await _channel.invokeMethod("cancel");
  return res;
}