Printer constructor

const Printer({
  1. required String url,
  2. String? name,
  3. String? model,
  4. String? location,
  5. String? comment,
  6. bool? isDefault,
  7. bool? isAvailable,
})

Create a printer information

Implementation

const Printer({
  required this.url,
  String? name,
  this.model,
  this.location,
  this.comment,
  bool? isDefault,
  bool? isAvailable,
})  : name = name ?? url,
      isDefault = isDefault ?? false,
      isAvailable = isAvailable ?? true;