getShaderAssetPath static method

String getShaderAssetPath(
  1. String shaderName
)

Returns the correct shader asset path based on platform

All platforms use packages prefix when shader is from package

Implementation

static String getShaderAssetPath(String shaderName) {
  // All platforms use packages prefix for package shaders
  return 'packages/flutter_shader_kit/shaders/$shaderName';
}