WidgetClass class

A StatelessWidget / StatefulWidget subclass declared in the project.

Constructors

WidgetClass({required String name, required String source, required DartValue? tree, String? library, bool buildableWithoutArguments = false, String? placeholderArguments})

Properties

buildableWithoutArguments → bool
Name() compiles: the class is public and concrete, and its unnamed constructor has no required parameters.
final
hashCode → int
The hash code for this object.
no setterinherited
isScreen → bool
Whether build leads to a Scaffold through single-child wrappers (providers, builders, PopScope, project widgets, ...). Real apps rarely return the Scaffold directly.
no setter
library → String?
URI of the library declaring the class (the owner of a part file), e.g. package:my_app/home_screen.dart.
final
name → String
final
placeholderArguments → String?
Source of arguments that build the class with placeholder values, e.g. roomCode: 'roomCode', count: 0: strings get their parameter name, numbers 0, booleans false, nullables null, collections empty. '' when none are needed; null when a required parameter has a type that can't be made up (an object, a callback returning a value, ...).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaffoldPath → List<String>?
Project widget classes passed through on the way to the Scaffold; empty when this class builds it itself. Null when there is none.
latefinal
source → String
final
tree → DartValue?
What build returns, analyzed with no constructor arguments bound.
final

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