MethodChannelCupertinoNative class

Method channel implementation of CupertinoNativePlatform.

This class communicates with native iOS/macOS code through Flutter's method channel system. It serves as the bridge between Dart and native code for widget configuration and platform queries.

Method Channel Details

Channel name: cupertino_native

Available methods:

  • getPlatformVersion: Returns the native platform version string
  • Other methods for widget-specific configuration (handled per-widget)

Communication Pattern

  1. Dart calls async method on channel
  2. Native handler receives and processes
  3. Result is returned back to Dart
  4. Exceptions propagate through PlatformException
Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPlatformVersion() Future<String?>
See CupertinoNativePlatform.getPlatformVersion.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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