build method
- @override
- BuildContext context,
- 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,
);