ScanResult constructor

ScanResult({
  1. ResultType? type,
  2. String? rawContent,
  3. BarcodeFormat? format,
  4. String? formatNote,
})

Implementation

factory ScanResult({
  ResultType? type,
  $core.String? rawContent,
  BarcodeFormat? format,
  $core.String? formatNote,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (rawContent != null) {
    _result.rawContent = rawContent;
  }
  if (format != null) {
    _result.format = format;
  }
  if (formatNote != null) {
    _result.formatNote = formatNote;
  }
  return _result;
}