SimpleEnvironmentFilter class

A simple filter that can be used directly for simple use cases without having to extend the base EnvironmentFilter

Inheritance

Constructors

SimpleEnvironmentFilter({required EnvironmentFilterFunc filter, Set<String> environments = const {}})
const

Properties

environments Set<String?>
holds passed environment keys to be used inside the filter or retrieved later by users
finalinherited
filter EnvironmentFilterFunc
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRegister(Set<String> depEnvironments) bool
This function is called before every registration call, if it returns true, the dependency will be registered otherwise, it will be ignored
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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