create method Null safety

Future create(
  1. K key,
  2. V value,
  3. {int? time_to_live,
  4. int? time_to_born,
  5. int? time_to_refresh,
  6. bool? isCascade,
  7. bool? isBinary,
  8. bool? isEncrypted}
)

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.

@param key - Key with which the specified value is to be associated @param value - Value to be associated with the specified key @param time_to_live - Duration in milliseconds after which the key should expire automatically. @param time_to_born - Duration in milliseconds after which the key will become active. @return - sequence number from commit log if put is success. null otherwise Throws a DataStoreException if the the operation fails due to some issue with the data store.

Implementation

Future<dynamic> create(K key, V value,
    {int? time_to_live,
    int? time_to_born,
    int? time_to_refresh,
    bool? isCascade,
    bool? isBinary,
    bool? isEncrypted});