value property

  1. @override
TValue value

The value that you want to pass to all the components reading this context inside this provider, no matter how deep.

The context value can be of any type.

A component calling useContext(SomeContext) inside of the provider receives the value of the innermost corresponding context provider above it.

Implementation

@override
TValue get value =>
    (props[_$key__value___ProviderPropsMixin] ?? null) as TValue;
  1. @override
void value=(TValue value)

The value that you want to pass to all the components reading this context inside this provider, no matter how deep.

The context value can be of any type.

A component calling useContext(SomeContext) inside of the provider receives the value of the innermost corresponding context provider above it.

Implementation

@override
set value(TValue value) => props[_$key__value___ProviderPropsMixin] = value;