getAsCode function

String getAsCode(
  1. dynamic value
)

Implementation

String getAsCode(value) {
  final result = tryGetAsCode(value);
  if (result != null) {
    return result;
  }

  throw StateError('Unsupported type: ${value.runtimeType}');
}