MrcPhotoWidget constructor

MrcPhotoWidget({
  1. Key? key,
  2. PlatformViewType platformViewType = PlatformViewType.Compat,
  3. TextDirection? textDirection,
  4. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  5. PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  6. required void onPlayerCreated(
    1. MrcPhotoPlayer
    ),
})

Implementation

MrcPhotoWidget({
  super.key,
  super.platformViewType,
  super.textDirection,
  super.gestureRecognizers,
  super.hitTestBehavior,
  required this.onPlayerCreated,
}) : super(
        onViewCreated: (view) {
          final player = PlacesFactory.instance.createMrcPhotoPlayer(view);
          onPlayerCreated(player);

          return true;
        },
      );