build method

  1. @override
Widget build(
  1. BuildContext context,
  2. ValueNotifier<double> model
)
override

Builds the UI according to the state in model.

Implementation

@override
Widget build(BuildContext context, ValueNotifier<double> model) => IconButton(
  tooltip: tooltip,
  icon: Icon(
    _getNetworkIcon(model.value),
    color: StatusIcons.getColor(model.value),
  ),
  onPressed: onPressed,
);