SafeGetInstance extension
Enhanced GetInstance extensions for better compatibility
- on
Methods
-
enhancedSmartPut<
S> ({required InstanceBuilderCallback< S> builder, bool condition()?, bool validityCheck(S instance)?, String? tag, bool permanent = false, bool fenix = false, S? fallback}) → S -
Available on GetInstance, provided by the SafeGetInstance extension
Enhanced smart put with better error handling -
safeFindOrNull<
S> ({String? tag}) → S? -
Available on GetInstance, provided by the SafeGetInstance extension
Safe version of find with fallback -
safePut<
S> (S? dependency, {String? tag, bool permanent = false, InstanceBuilderCallback< S> ? builder}) → S -
Available on GetInstance, provided by the SafeGetInstance extension
Safe version of put that handles null values