getIntList abstract method

Future<List<int>> getIntList(
  1. String key
)

getIntList use for get List of Integer

return List of Integer according to key, if key is not found then throw PrefException exception

Example :

ProSheredPreference sheredPrefHelper = ProSheredPreference();

try {
  List<int> result = await sheredPrefHelper.getIntList("key");
  print(result);       // print List of Integer according to key
} on PrefException catch (e) {
  print(e.toString());
}

Implementation

Future<List<int>> getIntList(String key);