tableize method

String tableize()

Converts a string into a table name.

Implementation

String tableize() {
  if (this == null) {
    throw ArgumentError('string: $this');
  }
  if (this!.isEmpty) {
    return '';
  }
  return this!.pluralize().underscore();
}