clear method

Future clear({
  1. String? prefix,
})

Implementation

Future clear({String? prefix}) async {
  if (defaultSessionName != null && prefix != null) {
    await sotrageImplimentation.clear(
        prefix: "${defaultSessionName}_$prefix");
  } else if (prefix != null) {
    await sotrageImplimentation.clear(prefix: prefix);
  } else if (defaultSessionName != null) {
    await sotrageImplimentation.clear(prefix: defaultSessionName);
  } else {
    await sotrageImplimentation.clear();
  }
}