NutrientFlutterPlatform class abstract

The interface that implementations of nutrient_flutter must implement.

Platform implementations should extend this class rather than implement it as nutrient_flutter does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added NutrientFlutterPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • NutrientFlutterPlatform

Constructors

NutrientFlutterPlatform()
Constructs a NutrientFlutterPlatform.

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

activateLicense(String? licenseKey) Future<void>
Activates the native SDK license for this platform.
createDefaultAdapter() NutrientPlatformAdapter
Creates the SDK's built-in default adapter for this platform.
createDefaultInstantAdapter() NutrientPlatformAdapter
Creates a fresh default adapter for an Instant view — the Instant counterpart of createDefaultAdapter, returning a controller that also implements NutrientInstantController so a bare NutrientInstantView surfaces the Instant sync methods in onControllerReady.
getPlatformVersion() Future<String?>
The version string of the underlying native Nutrient SDK on this platform (e.g. "11.5.1" on Android/iOS, the Web SDK version on web), or null when the platform doesn't report one. Surfaced to apps via Nutrient.frameworkVersion.
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

Static Properties

instance NutrientFlutterPlatform?
The registered platform implementation, or null if none has registered yet — e.g. on an unsupported platform, or before the Flutter plugin registrant has run. Each platform package sets this from its registerWith(), which Flutter invokes before main().
getter/setter pair