toSnakeCase method

String toSnakeCase()

Converts the string to snake_case.

Implementation

String toSnakeCase() => _extractComponents().join('_');