checkCamera method

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

Implementation

Future<List<dynamic>> checkCamera(BuildContext context,
    {CameraPick? camerapick, int? timeEnd}) async {
  List<dynamic> list = [];
  await SellonRouter.push(
      context,
      CameraAndroidOnly(
        isTakeVideo: false,
        timeEnd: timeEnd!,
        // cameraPick: camerapick,
      )).then((value) async {
    if (value != null) {
      if (value is List<ImageModulModel>) {
        list = value;
      }else{
        list = value;
      }
    } else {}
  });
  return list;
}