MrcPhotoWidget constructor
MrcPhotoWidget({
- Key? key,
- PlatformViewType platformViewType = PlatformViewType.Compat,
- TextDirection? textDirection,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> > - PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
- required void onPlayerCreated(
- 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;
},
);