copyWith method

  1. @override
StarSubscriptionTypeChannel copyWith({
  1. bool? canReuse,
  2. String? inviteLink,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
StarSubscriptionTypeChannel copyWith({bool? canReuse, String? inviteLink}) =>
    StarSubscriptionTypeChannel(
      canReuse: canReuse ?? this.canReuse,
      inviteLink: inviteLink ?? this.inviteLink,
    );