getPrefixIcon static method

Widget getPrefixIcon(
  1. String type
)

Implementation

static Widget getPrefixIcon(String type) {
  if (type == PrefixIconType.add) {
    return PhoenixTools.getAssetImageWithBandColor(FormAssets.iconAddFormItem,
        package: 'phoenix_form');
  } else if (type == PrefixIconType.remove) {
    return PhoenixTools.getAssetImage(FormAssets.iconRemoveFormItem,
        package: 'phoenix_form');
  } else {
    return Container();
  }
}