pickVideo method

  1. @override
Future<CapturedVideo?> pickVideo()
override

Picks one video. Null if the author cancelled.

The clip is whatever the library holds — length and size are not checked here. A capped composer probes the result and either trims it or refuses it, which is why CapturedVideo.duration is populated on return.

Implementation

@override
Future<CapturedVideo?> pickVideo() async {
  videoPickCount++;
  return video;
}