anchor.diff:    /// failure.
     static Future<bool> cancel(int id) async {
       final dynamic r =
  +        // TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
  +        // https://github.com/flutter/flutter/issues/26431
  +        // ignore: strong_mode_implicit_dynamic_method
           await _channel.invokeMethod('Alarm.cancel', <dynamic>[id]);
       return (r == null) ? false : r;
     }
  
positive.code:       return false;
      }
      final dynamic r = await _channel
          .invokeMethod('AlarmService.start', <dynamic>[handle.toRawHandle()]);
      return r ?? false;
    }
  
negative.code:     if (handle == null) {
        return false;
      }
      // TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
      // https://github.com/flutter/flutter/issues/26431
      // ignore: strong_mode_implicit_dynamic_method
      final dynamic r = await _channel.invokeMethod('Alarm.periodic',
          <dynamic>[id, exact, wakeup, first, period, handle.toRawHandle()]);
      return (r == null) ? false : r;
  