Config class Null safety

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

author String
final
baseUrl String
final
build BuildConfig
final
environment → CustomEnvironment
FileSystemLoader.autoReload is not required because we handle reloading templates ourselves inside ServeCommand. Only this way we can ensure the template is updated before triggering rebuild.
late, final
extra YamlMap
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
serve ServeConfig
final
templates TemplatesConfig
final
title String
final

Methods

getBaseUrl({bool isServe = false}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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