removeUser method

Future<void> removeUser(
  1. String userId
)

Implementation

Future<void> removeUser(String userId) async {
  final userInfoFileContent = await AppticsDataStore.getFileContents(FileType.userInfo);
  if (userInfoFileContent != null) {
    Map<String, dynamic> users = jsonDecode(userInfoFileContent);
    if (users.containsKey(userId)) {
      (users[userId] as Map<String, dynamic>).putIfAbsent("isActive", () => false);
    }
  }
}