getCurrentUser method

Future<Map?> getCurrentUser()

Implementation

Future<Map?> getCurrentUser() async {
  final action = OmiAction(
    actionName: OmiActionName.GET_CURRENT_USER,
    data: {},
  );
  final result = await _controller.action(action);
  if (result != null) {
    return result as Map;
  }
  return null;
}