attachPlatformView method

Future<void> attachPlatformView(
  1. int viewId
)

Called by UArView once the iOS platform view exists.

Implementation

Future<void> attachPlatformView(int viewId) async {
  if (_disposed) return;
  value = value.copyWith(state: UArSessionState.initializing);
  try {
    await _start(viewId);
  } on UArException catch (error) {
    _fail(error);
  }
}