build method

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

Describes the part of the user interface represented by this widget.

Implementation

@override
Widget build(BuildContext context) {
  return Text(
    icon,
    style: color == null ? const TextStyle() : TextStyle(color: color),
  );
}