dig method

int dig(
  1. String c
)

Implementation

int dig(String c) => c.codeUnitAt(0) - '0'.codeUnitAt(0);