HtmlElementView constructor Null safety
- {Key? key,
- required String viewType,
- PlatformViewCreatedCallback? onPlatformViewCreated}
Creates a platform view for Flutter Web.
viewType
identifies the type of platform view to create.
Implementation
const HtmlElementView({
super.key,
required this.viewType,
this.onPlatformViewCreated,
}) : assert(viewType != null),
assert(kIsWeb, 'HtmlElementView is only available on Flutter Web.');