setCustomerInfo static method

Future<void> setCustomerInfo(
  1. String firstName,
  2. String lastName,
  3. String phoneNumber,
  4. String email,
  5. bool isFirstOrder,
)

Implementation

static Future<void> setCustomerInfo(String firstName, String lastName,
    String phoneNumber, String email, bool isFirstOrder) async {
  try {
    await platform.invokeMethod('setCustomerInfo', <String, dynamic>{
      'firstName': firstName,
      'lastName': lastName,
      'phoneNumber': phoneNumber,
      'email': email,
      'isFirstOrder': isFirstOrder,
    });
  } on PlatformException catch (e) {
    showToast(e.message.toString());
  }
}