getInterfaceIcon method

Widget getInterfaceIcon({
  1. required BuildContext context,
  2. required GlobalKey<State<StatefulWidget>> anchor,
})

The Icon displayed for this interface

Will use interfaceColor and Icons.circle by default

Implementation

Widget getInterfaceIcon({
  required BuildContext context,
  required GlobalKey anchor,
}) {
  if (interfaceIconBuilder != null) {
    return interfaceIconBuilder!(context, anchor, this);
  }

  return Icon(
    Icons.circle,
    key: anchor,
    color: interfaceColor,
    size: 15,
  );
}