uri method

FutureOr<String> uri(
  1. int id
)

Returns the URI for token type id.

This will also replace {id} in original uri fetched by id.

Implementation

FutureOr<String> uri(int id) async {
  if (_uri.isEmpty) _uri = await contract.call<String>('uri', [id]);
  return _uri.replaceAll('{id}', id.toString());
}