NativeView.fromIOS constructor
NativeView.fromIOS(
- IOSNativeView iosNativeView
Creates a NativeView from an iOS native view.
Implementation
factory NativeView.fromIOS(IOSNativeView iosNativeView) {
return NativeView(
className: iosNativeView.elementType.name,
text: iosNativeView.label,
contentDescription: iosNativeView.accessibilityLabel,
focused: iosNativeView.hasFocus,
enabled: iosNativeView.isEnabled,
childCount: iosNativeView.children.length,
resourceName: iosNativeView.identifier,
applicationPackage: iosNativeView.bundleId,
children: iosNativeView.children.map(NativeView.fromIOS).toList(),
);
}