addIncome function

Future addIncome(
  1. Map<String, dynamic> payload
)

Implementation

Future addIncome(Map<String, dynamic> payload) async {
  String id = await getUserID();
  payload.addAll({"userID": id});
  final addIncome = await pocketBase.collection("income").create(body: payload);
  print(addIncome);
}