copyWith method

Authorization copyWith({
  1. String? token,
  2. DateTime? expiredAt,
  3. String? payload,
})

Copy with new values.

Implementation

Authorization copyWith({
  String? token,
  DateTime? expiredAt,
  String? payload,
}) =>
    Authorization(
      type: type,
      token: token ?? this.token,
      expiredAt: expiredAt ?? this.expiredAt,
      payload: payload ?? this.payload,
    );