extension property

String? get extension

Implementation

String? get extension {
  if (this == null) return null;
  return "$this".replaceAll(upToLastDot, '');
}