Format.withString constructor Null safety

Format.withString(
  1. String format,
  2. {bool? lossy,
  3. Progressive? progressive,
  4. bool? preserveTransparency,
  5. bool? ignoreMaskChannels}
)

Implementation

Format.withString(String format,
    {bool? lossy,
    Progressive? progressive,
    bool? preserveTransparency,
    bool? ignoreMaskChannels}) {
  this.format = Format.custom(format);
  _lossy = lossy;
  _progressive = progressive;
  _preserveTransparency = preserveTransparency;
  _ignoreMaskChannels = ignoreMaskChannels;
}