FunctionalWidgetType enum
Determines which type of widget will be generated
Defaults to stateless.
Constructors
- FunctionalWidgetType()
-
const
Values
- hook → const FunctionalWidgetType
-
Will generate a
HookWidget
, fromflutter_hooks
package.HookWidget
must be installed as a separate dependency:dependencies: flutter_hooks: any
- hookConsumer → const FunctionalWidgetType
-
Will generate a
HookConsumerWidget
, fromhooks_riverpod
package.HookConsumerWidget
must be installed as a separate dependency:dependencies: hooks_riverpod: any
- consumer → const FunctionalWidgetType
-
Will generate a
ConsumerWidget
, fromflutter_riverpod
package.ConsumerWidget
must be installed as a separate dependency:dependencies: riverpod: any
- stateless → const FunctionalWidgetType
-
Will generate a
StatelessWidget
.
Properties
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
Constants
-
values
→ const List<
FunctionalWidgetType> - A constant List of the values in this enum, in order of their declaration.