putInt method

void putInt({
  1. required String key,
  2. int value = 0,
})

保存int数据 key 存储key value int value

Implementation

void putInt({required String key, int value = 0}) {
  if (key.isNotEmptyString) {
    _storageData<int>(key, value, "int");
  }
}