parse static method

OverflowInfo? parse(
  1. String summary
)

Implementation

static OverflowInfo? parse(String summary) {
  final m = _message.firstMatch(summary.trim());
  if (m == null) return null;
  final edges = [
    for (final e in _edge.allMatches(m.group(2)!)) (amount: _number(e.group(1)!), edge: e.group(2)!),
  ];
  return edges.isEmpty ? null : OverflowInfo(m.group(1)!, edges);
}