Dispose typedef Null safety

Dispose = void Function()

Implementation

typedef Dispose = void Function();