NativeComponentController class

Controls one embedded native component.

Obtain it from NativeComponent.onCreated, which fires once the native view exists. Calls after the widget is disposed are ignored.

Properties

events → Stream<NativeEvent>
Every event emitted by the native component.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → Future<void>
Restores the component's initial state where supported.
send(String name, [Object? arguments]) → Future<void>
Sends a named command. Custom components receive it in onNativeCommand.
toString() → String
A string representation of this object.
inherited
trigger([Object? arguments]) → Future<void>
Performs the component's primary action (present, toggle, next…). See NativeComponentType.triggerLabel.
update(NativeComponentConfig config) → Future<void>
Replaces the configuration. NativeComponent calls this automatically when its config changes.

Operators

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