optionsWhereSource method

Iterable<GlobalOption> optionsWhereSource(
  1. bool test(
    1. ValueSourceType source
    )
)
inherited

Returns the options that have a value matching the source type test.

Implementation

Iterable<O> optionsWhereSource(
  final bool Function(ValueSourceType source) test,
) {
  return _config.entries
      .where((final e) => test(e.value.source))
      .map((final e) => e.key);
}