checkCameraVideo method

Future<List?> checkCameraVideo(
  1. BuildContext context, {
  2. CameraPick? camerapick,
  3. int? timeEnd,
})

Implementation

Future<List<dynamic>?> checkCameraVideo(BuildContext context,
    {CameraPick? camerapick, int? timeEnd}) async {
  List<dynamic>? file;

  await SellonRouter.push(
      context,
      // Platform.isAndroid
      //     ?
      CameraAndroidOnly(
        isTakeVideo: true,
        timeEnd: timeEnd!,
      )
    // : CameraRealSellon(
    //     cameraPick: camerapick,
    //   )
  ).then((value) async {
    if (value != null) {
      if (value is List<File>) {
        file = value;
      }else{
        file = value;
      }
    } else {}
  });
  return file;
}