onChanged property Null safety

VoidCallback? onChanged
final

Callback that is invoked if an asynchronously-loading resource used by the decoration finishes loading. For example, an image. When this is invoked, the paint method should be called again.

Resources might not start to load until after paint has been called, because they might depend on the configuration.

Implementation

final VoidCallback? onChanged;