getCustomerInfo static method
Implementation
static Future<CustomerInfo?> getCustomerInfo() async {
try {
SharedPreferences prefs = await SharedPreferences.getInstance();
String? customerInfoData = prefs.getString('customerInfo');
if (customerInfoData?.isNotEmpty ?? false) {
return CustomerInfo.fromJson(jsonDecode(customerInfoData!));
}
return null;
} catch (e) {
SdkLogger.error('Inappify storage read failed: ${e.runtimeType}');
return null;
}
}