OnClose typedef Null safety

OnClose = void Function()

关闭

Implementation

typedef OnClose = void Function();