LocalConfigIntProvider constructor

LocalConfigIntProvider(
  1. String key, [
  2. int defaultValue = Config.defaultValueForInt
])

Gets a LocalConfig value as a int. Whenever this key changes, this provider will be updated.

Copied from localConfigInt.

Implementation

LocalConfigIntProvider(
  String key, [
  int defaultValue = Config.defaultValueForInt,
]) : this._internal(
        (ref) => localConfigInt(
          ref as LocalConfigIntRef,
          key,
          defaultValue,
        ),
        from: localConfigIntProvider,
        name: r'localConfigIntProvider',
        debugGetCreateSourceHash:
            const bool.fromEnvironment('dart.vm.product')
                ? null
                : _$localConfigIntHash,
        dependencies: LocalConfigIntFamily._dependencies,
        allTransitiveDependencies:
            LocalConfigIntFamily._allTransitiveDependencies,
        key: key,
        defaultValue: defaultValue,
      );