copyWith method

TokenModel copyWith({
  1. String? id,
  2. String? method,
})

Implementation

TokenModel copyWith({
  String? id,
  String? method,
}) {
  return TokenModel(
    id: id ?? this.id,
    method: method ?? this.method,
  );
}