NetpbmHeader constructor

NetpbmHeader({
  1. required NetpbmFormat format,
  2. required int width,
  3. required int height,
  4. int? max,
  5. Iterable<String> comments = const [],
})

Creates a new Netpbm header with the given values.

Implementation

NetpbmHeader({
  required this.format,
  required this.width,
  required this.height,
  this.max,
  Iterable<String> comments = const [],
}) : comments = List.unmodifiable(comments);