asset method

Widget asset(
  1. String icon, {
  2. required WidgetSize size,
  3. Color? color,
  4. BoxFit fit = BoxFit.contain,
})

Implementation

Widget asset(String icon, {required WidgetSize size, Color? color, BoxFit fit = BoxFit.contain}) {
  return _loadAsset('$prefix/$icon', size: size, color: color, fit: fit);
}