RequiredClass class final
A top-level class that a provider must generate; the parameters are those of its unnamed constructor, and the getters are what other code reads from its instances.
- Inheritance
-
- Object
- RequiredSymbol
- RequiredClass
Constructors
-
RequiredClass(String name, {required String path, List<
String> namedParameters = const [], int positionalArguments = 0, Set<ChoiceCondition> whenChosen = const {}, bool constConstructor = false, List<String> getters = const []}) -
Requires the class
nameinpath, whose unnamed constructor isconstifconstConstructoris set, and which declaresgetters.const
Properties
- constConstructor → bool
-
Whether the unnamed constructor must be
const, so other code can create constant instances.final -
getters
→ List<
String> -
The names that other code reads from an instance of the class, such
as
destinationsinshell.destinations.final - hashCode → int
-
The hash code for this object.
no setterinherited
- importRef → ImportRef
-
The import of path, for code that uses the symbol.
no setterinherited
- name → String
-
The name of the symbol.
finalinherited
-
namedParameters
→ List<
String> -
The named parameters that callers pass; the symbol may have other
named parameters only if they are optional.
finalinherited
- path → String
-
The path of the file that declares it, relative to the project root,
such as
lib/bootstrap.dart.finalinherited - positionalArguments → int
-
How many positional arguments callers pass.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
whenChosen
→ Set<
ChoiceCondition> -
Conditions on what roles chose that must all hold in an app for it to
need the symbol, such as that no route starts the app; see
ChoiceCondition.
finalinherited
Methods
-
checkIn(
Map< String, DartFileIndex> files) → List<SmfIssue> -
Checks that
files, indexes by path, declare this symbol as required, and returns the problems found.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited