CupertinoNative class
Top-level facade for simple plugin interactions.
Most developers should use the individual widgets and utilities directly (e.g. CNButton, PlatformVersion) rather than this class. This facade exists primarily for version-checking during plugin setup.
Example:
final version = await CupertinoNative().getPlatformVersion();
debugPrint('Platform: $version');
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> -
Returns a user-friendly platform version string from the host platform
(e.g.
"iOS 26.0"or"macOS 26.0"). -
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