Metadata constructor

Metadata({
  1. String? description,
  2. Iterable<DenomUnit>? denomUnits,
  3. String? base,
  4. String? display,
  5. String? name,
  6. String? symbol,
})

Implementation

factory Metadata({
  $core.String? description,
  $core.Iterable<DenomUnit>? denomUnits,
  $core.String? base,
  $core.String? display,
  $core.String? name,
  $core.String? symbol,
}) {
  final _result = create();
  if (description != null) {
    _result.description = description;
  }
  if (denomUnits != null) {
    _result.denomUnits.addAll(denomUnits);
  }
  if (base != null) {
    _result.base = base;
  }
  if (display != null) {
    _result.display = display;
  }
  if (name != null) {
    _result.name = name;
  }
  if (symbol != null) {
    _result.symbol = symbol;
  }
  return _result;
}