read property
A function that allows obtaining other objects.
It is typically equivalent to Provider.of(context, listen: false)
when
using provider
, but it could also be GetIt.get
for example.
DON'T modify read manually.
The only reason why read is not final
is so that it can be
initialized by providers from flutter_notifier
.
May throw a DependencyNotFoundException if the looked-up type is not found.
Implementation
@protected
Locator get read {
assert(_debugIsNotifierMounted(), '');
return _locator;
}
set
read
(Locator read)
Implementation
set read(Locator read) {
assert(_debugIsNotifierMounted(), '');
_locator = read;
}