defaultValue property

String? defaultValue
final

Rendered when key has never been written.

Without one a widget shows -- until the app runs and pushes data — and the OS gallery preview, which runs before the app ever has, shows -- for every bound value. That preview is what a user sees when deciding whether to add the widget at all.

Implementation

final String? defaultValue;