initCamera method

  1. @override
Widget initCamera()
override

Implementation

@override
Widget initCamera() {
  const String viewType =
      'vn.zensho.hikvision.hikvision_flutter.platformView';
  // Pass parameters to the platform side.
  final Map<String, dynamic> creationParams = <String, dynamic>{};
  return UiKitView(
    viewType: viewType,
    layoutDirection: TextDirection.ltr,
    creationParams: creationParams,
    creationParamsCodec: const StandardMessageCodec(),
  );
}