createProfile method

Future<bool> createProfile({
  1. required ProfileModel profile,
})

Implementation

Future<bool> createProfile({required ProfileModel profile}) async {
  try {
    debugPrint('createProfile(${profile.toMap})-$isDeviceSupported');
    return isDeviceSupported ? await _methodChannel.invokeMethod<bool>('createProfile', profile.toMap) ?? false : false;
  } catch (e) {
    debugPrint('createProfile, Error: $e');
    return false;
  }
}