copyWith method

dynamic copyWith({
  1. String? token,
  2. double? createdAt,
  3. FCMTokenType? type,
  4. String? id,
})

Implementation

copyWith({
  String? token,
  double? createdAt,
  FCMTokenType? type,
  String? id,
}) {
  return FCMToken(
    token: token ?? this.token,
    createdAt: createdAt ?? this.createdAt,
    type: type ?? this.type,
    id: id ?? this.id,
  );
}