controller property
override
The Android view controller for the Android view associated with this render object.
Implementation
@override
AndroidViewController get controller => _viewController;
covariantoverride
Sets a new Android view controller.
Implementation
@override
set controller(AndroidViewController controller) {
assert(!_isDisposed);
if (_viewController == controller) {
return;
}
_viewController.removeOnPlatformViewCreatedListener(_onPlatformViewCreated);
super.controller = controller;
_viewController = controller;
_viewController.pointTransformer = (Offset offset) => globalToLocal(offset);
_sizePlatformView();
if (_viewController.isCreated) {
markNeedsSemanticsUpdate();
}
_viewController.addOnPlatformViewCreatedListener(_onPlatformViewCreated);
}