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;
}