maxDeviceLimitProvider top-level property
final
Provides the maximum device limit for a homeowner.
The maximum device limit can vary based on the homeowner or environment.
Implementation
final maxDeviceLimitProvider = Provider<int>(
(ref) {
final rawEnvLimit =
ref.watch(_homeownerAppEnvFamily('MAX_DEVICE_LIMIT')).valueOrNull;
final envLimit = rawEnvLimit != null ? int.tryParse(rawEnvLimit) : null;
return envLimit ?? _kDefaultMaxDeviceLimit;
},
);