Config class
Constructors
- Config({String title = '', String author = '', String baseUrl = '', required BuildConfig build, required ServeConfig serve, required TemplatesConfig templates, YamlMap? extra})
- Config.fromYaml(YamlMap map)
-
factory
- Config.initial()
-
Populated config used during
blake init
.factory
Properties
-
final
- baseUrl → String
-
final
- build → BuildConfig
-
final
- environment → CustomEnvironment
-
FileSystemLoader.autoReload
is not required because we handle reloading templates ourselves insideServeCommand
. Only this way we can ensure the template is updated before triggering rebuild.latefinal - extra → YamlMap
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serve → ServeConfig
-
final
- templates → TemplatesConfig
-
final
- title → String
-
final
Methods
-
getBaseUrl(
{bool isServe = false}) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited