pick static method
Future<MediaEntity?>
pick(
- BuildContext context, {
- Duration? videoDuration,
- ResolutionPreset? resolutionPreset,
- 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),
),
);
}