fileName function

String fileName(
  1. AssetId id
)

Returns the base file name for AssetId.

Implementation

String fileName(AssetId id) {
  var uri = _toAssetScheme(Uri.parse(toAssetUri(id)));
  return uri.pathSegments.last;
}