isInitialized property

bool get isInitialized

Whether the controller has been initialized with a platform view.

Returns true if the controller is connected to a native view and can receive method calls.

Implementation

bool get isInitialized => _methodChannel != null && _viewId != null;