PlatformInterface class abstract

Interface for platform-specific native bridge operations

Implementers

Constructors

PlatformInterface()

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
attachView(String childId, String parentId, int index) Future<bool>
Attach a child view to a parent at the specified index
callComponentMethod(String viewId, String methodName, Map<String, dynamic> args) Future
Call a method on a specific component instance
cancelBatchUpdate() Future<bool>
Cancel the pending batch updates
commitBatchUpdate() Future<bool>
Commit the pending batch updates
createView(String viewId, String type, Map<String, dynamic> props) Future<bool>
Create a view with the specified ID, type, and properties
deleteView(String viewId) Future<bool>
Delete a view
detachView(String viewId) Future<bool>
Detach a view from its parent without deleting it
handleNativeEvent(String viewId, String eventType, Map<String, dynamic> eventData) → void
Handle an event from native code
initialize() Future<bool>
Initialize the bridge with native code
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
removeEventListeners(String viewId, List<String> eventTypes) Future<bool>
Remove event listeners from a view
setChildren(String viewId, List<String> childrenIds) Future<bool>
Set all children for a view (replacing any existing children)
setEventHandler(dynamic handler(String viewId, String eventType, Map<String, dynamic> eventData)) → void
Set a global event handler for all events
startBatchUpdate() Future<bool>
Start a batch update (multiple operations that will be applied atomically)
toString() String
A string representation of this object.
inherited
updateView(String viewId, Map<String, dynamic> propPatches) Future<bool>
Update properties for an existing view

Operators

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

Static Properties

instance PlatformInterface
Get the singleton instance
no setter