canonical static method

String canonical(
  1. String name
)

A key or name in its canonical form: lower case, without - and _, so seed-color, seedColor and SEED_COLOR are the same key.

Implementation

static String canonical(String name) =>
    name.toLowerCase().replaceAll('-', '').replaceAll('_', '');