id property
String
get
id
The identifier for this data asset.
An DataAsset has a string identifier called "asset id". Dart code that uses an asset references the asset using this asset id.
An asset identifier consists of two elements, the package
and name
,
which together make a library uri package:<package>/<name>
. The package
being part of the identifer prevents name collisions between assets of
different packages.
Implementation
String get id => 'package:$package/$name';