MemoryConfigurationProvider class

In-memory implementation of ConfigurationProvider

Inheritance
Mixed in types
Available Extensions

Constructors

MemoryConfigurationProvider(MemoryConfigurationSource source)
Initialize a new instance from the source.

Properties

data LinkedHashMap<String, String?>
The configuration key value pairs for this provider.
getter/setter pairinherited
first MapEntry<String, String?>
The first element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<MapEntry<String, String?>>
Returns an enumerator that iterates through the collection.
no setteroverride
last MapEntry<String, String?>
The last element.
no setterinherited
length int
The number of elements in this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single MapEntry<String, String?>
Checks that this iterable has only one element, and returns that element.
no setterinherited

Methods

add(String key, String value) → void
Add a new key and value pair.
any(bool test(MapEntry<String, String?> element)) bool
Checks whether any element of this iterable satisfies test.
inherited
cast<R>() Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
contains(Object? element) bool
Whether the collection contains an element equal to element.
inherited
elementAt(int index) MapEntry<String, String?>
Returns the indexth element.
inherited
every(bool test(MapEntry<String, String?> element)) bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(MapEntry<String, String?> element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool test(MapEntry<String, String?> element), {MapEntry<String, String?> orElse()?}) MapEntry<String, String?>
The first element that satisfies the given predicate test.
inherited
fold<T>(T initialValue, T combine(T previousValue, MapEntry<String, String?> element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<MapEntry<String, String?>> other) Iterable<MapEntry<String, String?>>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(MapEntry<String, String?> element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
getChildKeys(Iterable<String> earlierKeys, String? parentPath) Iterable<String>
Returns the list of keys that this provider has.
inherited
getReloadToken() ChangeToken
Returns a ChangeToken that can be used to listen when this provider is reloaded.
inherited
join([String separator = ""]) String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(MapEntry<String, String?> element), {MapEntry<String, String?> orElse()?}) MapEntry<String, String?>
The last element that satisfies the given predicate test.
inherited
load() → void
Loads configuration values from the source represented by this ConfigurationProvider.
inherited
map<T>(T toElement(MapEntry<String, String?> e)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onReload() → void
Triggers the reload change token and creates a new one.
inherited
reduce(MapEntry<String, String?> combine(MapEntry<String, String?> value, MapEntry<String, String?> element)) MapEntry<String, String?>
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
set(String key, String? value) → void
Sets a value for a given key.
inherited
singleWhere(bool test(MapEntry<String, String?> element), {MapEntry<String, String?> orElse()?}) MapEntry<String, String?>
The single element that satisfies test.
inherited
skip(int count) Iterable<MapEntry<String, String?>>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(MapEntry<String, String?> value)) Iterable<MapEntry<String, String?>>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
take(int count) Iterable<MapEntry<String, String?>>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeWhile(bool test(MapEntry<String, String?> value)) Iterable<MapEntry<String, String?>>
Creates a lazy iterable of the leading elements satisfying test.
inherited
toList({bool growable = true}) List<MapEntry<String, String?>>
Creates a List containing the elements of this Iterable.
inherited
toSet() Set<MapEntry<String, String?>>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
Generates a string representing this provider name and relevant details.
inherited
tryGet(String key) List
Tries to get a configuration value for the specified key.
inherited
where(bool test(MapEntry<String, String?> element)) Iterable<MapEntry<String, String?>>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited

Operators

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