Whether the object is already closed.
null means you can't extract such information.
For example: Flutter's ChangeNotifier doesn't tell you if he was disposed
A callback function that can be provided to perform custom actions when
the associated entity is closed. This function is executed afterclose
is called. If close is Future, then it will be awaited and called onClose.