getUserInfo method

Future<Map?> getUserInfo({
  1. required String phone,
})

Implementation

Future<Map?> getUserInfo({required String phone}) async {
  final action = OmiAction(
    actionName: OmiActionName.GET_USER_INFO,
    data: {
      "phone": phone,
    },
  );
  final result = await _controller.action(action);
  if (result != null) {
    return result as Map;
  }
  return null;
}