getAssetFileUrl method

String getAssetFileUrl({
  1. required String asset,
})

Implementation

String getAssetFileUrl({required String asset}) {
  final assetsDirectory = p.join(p.dirname(Platform.resolvedExecutable),
      'data', 'flutter_assets', asset);
  return Uri.file(assetsDirectory).toString();
}