forName static method

Charset? forName(
  1. String name
)

Implementation

static Charset? forName(String name) => values.firstOrNullWhere((c) =>
    c.name == name.toUpperCase() || c.aliases.contains(name.toUpperCase()));