OnlineStatusIcon constructor Null safety

const OnlineStatusIcon(
  1. {Key? key,
  2. required bool isOnline}
)

isOnline determines the colour of the circle.

Green if true, or red if false.

Implementation

const OnlineStatusIcon({Key? key, required this.isOnline}) : super(key: key);