getUserId method

  1. @override
Future getUserId({
  1. required MethodCall call,
})
override

Implementation

@override
Future getUserId({required MethodCall call}) async{
  final userId = _getModuleInstance().getUserId();
  return {
    "success": !isNullOrEmpty(userId),
    "message": !isNullOrEmpty(userId) ? "Get user ID successful" : "No user ID found",
    "data": {
      "userId": userId
    }
  };
}