buildIcon method

  1. @override
Widget buildIcon(
  1. BuildContext context
)
override

Implementation

@override
Widget buildIcon(BuildContext context) {
  if (icon != null) return icon!;

  final useProIcons = FastIconHelper.of(context).useProIcons;

  if (useProIcons) {
    return const FaIcon(FastFontAwesomeIcons.lightXmark);
  }

  return const FaIcon(FontAwesomeIcons.xmark);
}