TemplateRequirements class

Defines the package and generation requirements of an FKIT template.

Constructors

TemplateRequirements({required Map<String, String> packages, required Map<String, String> devPackages, required bool flutterGen, required bool buildRunner})
Creates template requirements with the specified configuration.
const
TemplateRequirements.empty()
Creates an empty template requirements configuration.
const
TemplateRequirements.fromMap(Map map)
Creates template requirements from the provided configuration map.
factory

Properties

buildRunner → bool
Whether build runner execution is required.
final
devPackages → Map<String, String>
The development packages required by the template.
final
flutterGen → bool
Whether Flutter code generation is required.
final
hasDevPackages → bool
Whether the template requires development packages.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasPackages → bool
Whether the template requires runtime packages.
no setter
packages → Map<String, String>
The runtime packages required by the template.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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