pickImage function

dynamic pickImage({
  1. dynamic height,
  2. dynamic width,
  3. bool camera = true,
})

Implementation

pickImage({height, width, bool camera = true}) async {
  return await _picker.pickImage(
    source: camera ? ImageSource.camera : ImageSource.gallery,
    maxWidth: width ?? 100,
    maxHeight: height ?? 100,
    // imageQuality: b
  );
}