getPublicAsset function Null safety

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) {
  return "${getEnv("ASSET_PATH_PUBLIC")}/$asset";
}