PlatformInterfaceImpl class
Method channel-based implementation of NativeBridge
- Implemented types
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
-
addEventListeners(
String viewId, List< String> eventTypes) → Future<bool> -
Add event listeners to a view
override
-
attachView(
String childId, String parentId, int index) → Future< bool> -
Attach a child view to a parent at the specified index
override
-
callComponentMethod(
String viewId, String methodName, Map< String, dynamic> args) → Future -
Call a method on a specific component instance
override
-
cancelBatchUpdate(
) → Future< bool> -
Cancel the pending batch updates
override
-
commitBatchUpdate(
) → Future< bool> -
Commit the pending batch updates
override
-
createView(
String viewId, String type, Map< String, dynamic> props) → Future<bool> -
Create a view with the specified ID, type, and properties
override
-
deleteView(
String viewId) → Future< bool> -
Delete a view
override
-
detachView(
String viewId) → Future< bool> -
Detach a view from its parent without deleting it
override
-
handleNativeEvent(
String viewId, String eventType, Map< String, dynamic> eventData) → void -
Handle an event from native code
override
-
initialize(
) → Future< bool> -
Initialize the bridge with native code
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerEventCallback(
String viewId, String eventType, Function callback) → void -
Register a specific callback for a view's event
override
-
removeEventListeners(
String viewId, List< String> eventTypes) → Future<bool> -
Remove event listeners from a view
override
-
setChildren(
String viewId, List< String> childrenIds) → Future<bool> -
Set all children for a view (replacing any existing children)
override
-
setEventHandler(
dynamic handler(String viewId, String eventType, Map< String, dynamic> eventData)) → void -
Set a global event handler for all events
override
-
startBatchUpdate(
) → Future< bool> -
Start a batch update (multiple operations that will be applied atomically)
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateView(
String viewId, Map< String, dynamic> propPatches) → Future<bool> -
Update properties for an existing view
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- bridgeChannel → const MethodChannel
- eventChannel → const MethodChannel
- layoutChannel → const MethodChannel