Config class abstract

Constructors

Config()
factory
Config.fromString(String string)
factory
Config.fromStrings(List<String> strings)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addSection(String name) → void
Add a new section to the config.
defaults() Map<String, String>
Return a dictionary containing the instance-wide defaults.
get(String name, String option) String?
Returns the value associated with option in the section called name.
hasOption(String name, String option) bool
Returns true if option exists within the section called name.
hasSection(String name) bool
Returns true if there is an existing section called name.
items(String name) List<List<String?>>?
Returns a list of option (name, value) pairs in the section called name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options(String name) Iterable<String>?
Returns a list of options available in the section called name.
removeOption(String section, String option) bool
Remove the option from the section called name.
removeSection(String section) bool
Remove the section called name.
sections() Iterable<String>
Return a list of the sections available.
set(String name, String option, String value) → void
Sets the option to value in the section called name.
toString() String
Return the Config content as a parseable string.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited