MrcPhotoTrackWidget constructor

MrcPhotoTrackWidget({
  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. MrcPhotoTrackPlayer
    ),
})

Implementation

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

          return true;
        },
      );