HtmlElementView constructor Null safety

const HtmlElementView(
  1. {Key? key,
  2. required String viewType,
  3. 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.');