removeExtension method

String removeExtension()

Implementation

String removeExtension() {
  final s = this.split('.');
  return s.first;
}