iconPath static method

String iconPath(
  1. BuildContext context,
  2. String iconName
)

获取完整图标路径

final path = PlayerAssetsScope.iconPath(context, PlayerIcons.back);
SvgPicture.asset(path)

Implementation

static String iconPath(BuildContext context, String iconName) =>
    '${of(context)}/$iconName';