pick static method

Future<MediaEntity?> pick(
  1. BuildContext context, {
  2. Duration? videoDuration,
  3. ResolutionPreset? resolutionPreset,
  4. ImageFormatGroup? imageFormatGroup,
})

Implementation

static Future<MediaEntity?> pick(
  BuildContext context, {
  Duration? videoDuration,
  ResolutionPreset? resolutionPreset,
  ImageFormatGroup? imageFormatGroup,
}) async {
  return Navigator.of(context).push<MediaEntity>(
    SlideTransitionPageRoute(
      builder: CameraView(
        videoDuration: videoDuration,
        resolutionPreset: resolutionPreset,
        imageFormatGroup: imageFormatGroup,
      ),
      transitionCurve: Curves.easeIn,
      transitionDuration: _kRouteDuration,
      reverseTransitionDuration: _kRouteDuration,
      settings: const RouteSettings(name: name),
    ),
  );
}