getBootpayUUID static method

Future<String> getBootpayUUID()

Implementation

static Future<String> getBootpayUUID() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  String uuid = prefs.getString('uuid') ?? '';
  if(uuid.isEmpty) {
    uuid = Uuid().v1();
    prefs.setString('uuid', uuid);
  }
  return uuid;
}