toSnakeCase property

String get toSnakeCase

Converts the string to snake_case (snail_case, pothole_case). Example: "helloWorld" => "hello_world"

Implementation

String get toSnakeCase => toWords.join('_').toLowerCase();