getPublicAsset function

String getPublicAsset(
  1. String asset
)

Returns the full path for an asset in /public/assets directory. Usage e.g. getPublicAsset('videos/welcome.mp4');

Returns a String.

Implementation

String getPublicAsset(String asset) => "${getEnv("ASSET_PATH_PUBLIC")}/$asset";