toIds static method

List<String>? toIds(
  1. List<User>? users
)

List of users to list of userIds.

Implementation

static List<String>? toIds(List<User>? users) =>
    users?.map((u) => u.id).toList();