pickImage static method

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

Implementation

static  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
    );
  }