ProxyProviderNode class
IR node for a ProxyProvider or ChangeNotifierProxyProvider declaration.
These wrap a result type that depends on another provider type. The Riverpod
equivalent is a Notifier whose build() calls ref.watch(baseProvider).
- Inheritance
-
- Object
- ProviderNode
- ProxyProviderNode
Constructors
- ProxyProviderNode({required String baseType, required String resultType, bool isChangeNotifier = false, int? childOffset, int? childLength, required String filePath, required int offset, required int length})
- Creates a ProxyProviderNode.
Properties
- baseType → String
-
The dependency type (first type argument), e.g.
AuthService.final - childLength → int?
-
Source length of the
child:argument, if present.final - childOffset → int?
-
Source offset of the
child:argument, if present.final - filePath → String
-
Absolute path to the source file that contains this node.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isChangeNotifier → bool
-
True when the original is
ChangeNotifierProxyProvider.final - length → int
-
Byte length of the node within the source file.
finalinherited
- offset → int
-
Byte offset of the node's start within the source file.
finalinherited
- resultType → String
-
The produced type (last type argument), e.g.
UserNotifier.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited