setImageSizeIfNull method

void setImageSizeIfNull({
  1. required int? width,
  2. required int? height,
})

If the image size is null, allow us to update it's value.

Implementation

void setImageSizeIfNull({required int? width, required int? height}) {
  _width ??= width;
  _height ??= height;
}