getInt method

Future<int?> getInt({
  1. required String key,
})

获取int值 key 存储key part 缓存区类型

Implementation

Future<int?> getInt({required String key}) {
  if (key.isEmptyString) {
    return Future.value(0);
  }
  return _takeData<int>(key, "int");
}