GetAssetFunction typedef

GetAssetFunction = Future<FlameAssetResponse> Function(String url, {Map<String, String>? headers})

Function signature used by Flame Network Assets to fetch assets.

Implementation

typedef GetAssetFunction = Future<FlameAssetResponse> Function(
  String url, {
  Map<String, String>? headers,
});