extension property
String
get
extension
Returns the file extension of the requested path, if any.
Includes the leading ., if there is one.
Implementation
String get extension => _extensionCache ??= p.extension(uri?.path ?? '');