instance property Null safety

SmoothTheme instance

The singleton for the theme.

Implementation

static SmoothTheme get instance => _instance ??= const SmoothTheme();
void instance=(SmoothTheme testInstance)

Setter that allows tests to override the singleton instance.

Implementation

@visibleForTesting
static set instance(SmoothTheme testInstance) => _instance = testInstance;