copyWith method

Session copyWith({
  1. String? company,
  2. String? username,
  3. List<String>? supervisors,
  4. List<String>? subordinates,
  5. List<Permission>? permissions,
})

Implementation

Session copyWith({
  String? company,
  String? username,
  List<String>? supervisors,
  List<String>? subordinates,
  List<Permission>? permissions,
}) =>
    Session(
      company: company ?? this.company,
      username: username ?? this.username,
      supervisors: supervisors ?? this.supervisors,
      subordinates: subordinates ?? this.subordinates,
      permissions: permissions ?? this.permissions,
    );