underscore function

String underscore(
  1. String s
)

Returns the underscored form of s.

The string is also made lower case.

Implementation

String underscore(String s) => _split(s).join('_').toLowerCase();