PlatformViewRegistry class

A registry for factories that create platform views.

Constructors

PlatformViewRegistry()

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

getViewById(int viewId) Object
Returns the view previously created for viewId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerViewFactory(String viewType, Function viewFactory, {bool isVisible = true}) bool
Register viewType as being created by the given viewFactory.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultInvisibleViewType → const String
The view type of the built-in factory that creates invisible platform view DOM elements.
defaultVisibleViewType → const String
The view type of the built-in factory that creates visible platform view DOM elements.