toSnakeCase property
String
get
toSnakeCase
'Hello World' / 'helloWorld' → 'hello_world'
Implementation
String get toSnakeCase => _words.map((w) => w.toLowerCase()).join('_');
'Hello World' / 'helloWorld' → 'hello_world'
String get toSnakeCase => _words.map((w) => w.toLowerCase()).join('_');