RequiredClass class final

A top-level class that a provider must generate; the parameters are those of its unnamed constructor.

Inheritance

Constructors

RequiredClass(String name, {required String path, List<String> namedParameters = const [], int positionalArguments = 0, bool constConstructor = false})
Requires the class name in path, whose unnamed constructor is const if constConstructor is set.
const

Properties

constConstructor → bool
Whether the unnamed constructor must be const, so other code can create constant instances.
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

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