isRegisteredIn method
Internal helper to check if this state is registered in a specific scope.
Implementation
bool isRegisteredIn(LevitScope scope, {String? tag}) {
final instanceKey =
tag != null ? 'ls_value_${getProviderTag(this, tag)}' : _defaultKey;
return scope.isRegistered<_LevitStateInstance<T>>(tag: instanceKey);
}