getFloat abstract method

double getFloat(
  1. String key,
  2. double defaultValue
)

Gets a 32-bit floating-point value. Returns defaultValue if the key is missing or the stored type is not float. @param key Lookup key. @param defaultValue Value to return when not found or type mismatch. @return Stored float or defaultValue.

Dart code snippet: @snippet storage_manager_example.dart dart_KeyValueStorage_getFloat

Implementation

double getFloat(String key, double defaultValue);