fileName property

String get fileName

Implementation

String get fileName {
  final int slash = path.lastIndexOf(Platform.pathSeparator);
  return slash < 0 ? path : path.substring(slash + 1);
}