Directive class

Configuration for defining a directive.

Inheritance
Implemented types

Constructors

Directive({required String url, required DirectiveKind kind, String? as})
Configuration for defining a directive.
const
Directive.export(String url, {String? as})
Configuration for defining a directive.
factory
Directive.import(String url, {String? as})
Configuration for defining a directive.
factory
Directive.part(String url, {String? as})
Configuration for defining a directive.
factory
Directive.partOf(String url, {String? as})
Configuration for defining a directive.
factory

Properties

as String?
The name to use for the import
final
hashCode int
The hash code for this object.
no setterinherited
index int
The index within a list of sorted directives.
no setter
kind DirectiveKind
What kind of directive this is.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
url String
The url this directive references.
final

Methods

compareTo(Directive other) int
Compares this object to another object.
override
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