ServiceExtensionState({required this.enabled, required this.value}) { if (value is bool) { assert(enabled == value); } }