toDotCase method

String toDotCase()

Converts a string to dot.case.

'hello world'.toDotCase() // 'hello.world'

Implementation

String toDotCase() {
  if (isEmpty) return '';
  return toSnakeCase().replaceAll('_', '.');
}