getIcon method

Widget getIcon()

Returns the icon of the matched IconButton via Widget.toDiagnosticsNode

Implementation

Widget getIcon() {
  return getDiagnosticProp<Widget>('icon');
}