Config class
Settings configuration for uploading the application without using bootloader. This is needed everytime the application is changed.
Config(
debug, //Is this a debug or release file
exportPath, //Path to export the files to
softdeviceConfig, //Softdevice Config
applicationConfig, //Application Config
bootloaderConfig, //Bootloader Config
settingsConfig, //Settins Config
sofDeviceReqType,
hardwareVersion, //hardware version 51 or 52
keyfileConfig, //Key file config
comment //Comment in the hex or bin file
};
- Annotations
-
- @JsonSerializable.new(anyMap: true, checked: true)
Constructors
- Config({bool debug = false, String? exportPath, SoftDeviceConfig softdeviceConfig = const SoftDeviceConfig(), ApplicationConfig applicationConfig = const ApplicationConfig(), BootloaderConfig bootloaderConfig = const BootloaderConfig(), SettingsConfig? settingsConfig = const SettingsConfig(), String sofDeviceReqType = 's132NRF52d611', int hardwareVersion = 0xFFFFFFFF, KeyFileConfig? keyfileConfig, String? comment})
-
Creates an instance of Config
const
- Config.fromJson(Map json)
-
Creates Config from
jsonfactory
Properties
- applicationConfig → ApplicationConfig
-
Application Configuration
final
- bootloaderConfig → BootloaderConfig
-
Bootloader configuration
final
- comment → String?
-
Commets in the generated hex of bin file
final
- debug → bool
-
Debug mode
final
- exportPath → String?
-
Export the files to this path
final
- hardwareVersion → int
-
Version of the hardware 52 or 51
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasKeyfileConfig → bool
-
Whether or not configuration for generating signing key exist
no setter
- keyfileConfig → KeyFileConfig?
-
Key file config
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settingsConfig → SettingsConfig?
-
Settings config
final
- sofDeviceReqType → String
-
Softdevice type
final
- softdeviceConfig → SoftDeviceConfig
-
Softdevice configuration
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts config to Map
-
toString(
) → String -
Converts Config to String
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
loadConfigFromArgResults(
ArgResults results) → Config? -
Loads flutter configs from given
ArgResults -
loadConfigFromPath(
String filePath) → Config? -
Loads flutter configs from given
filePath -
loadConfigFromPubSpec(
) → Config? -
Loads flutter config from
pubspec.yamlfile