viewController property Null safety

UiKitViewController viewController

The unique identifier of the UIView controlled by this controller.

Typically generated by PlatformViewsRegistry.getNextPlatformViewId, the UIView must have been created by calling PlatformViewsService.initUiKitView.

Implementation

UiKitViewController get viewController => _viewController;
void viewController=(UiKitViewController value)

Implementation

set viewController(UiKitViewController value) {
  assert(value != null);
  if (_viewController == value) {
    return;
  }
  final bool needsSemanticsUpdate = _viewController.id != value.id;
  _viewController = value;
  markNeedsPaint();
  if (needsSemanticsUpdate) {
    markNeedsSemanticsUpdate();
  }
}