BoolCallback typedef Null safety

BoolCallback = void Function(bool)

Implementation

typedef BoolCallback = void Function(bool);