onDispose property Null safety

VoidCallback? onDispose
final

Implementation

final VoidCallback? onDispose;