Future<int?> get code async { final int? errorCode = await kMethodChannel .invokeMethod('NSError::getCode', {'__this__': this}); return errorCode; }