copyWith method

AvailableContentStates copyWith({
  1. List<ContentState>? spaceContentStates,
  2. List<ContentState>? customContentStates,
})

Implementation

AvailableContentStates copyWith(
    {List<ContentState>? spaceContentStates,
    List<ContentState>? customContentStates}) {
  return AvailableContentStates(
    spaceContentStates: spaceContentStates ?? this.spaceContentStates,
    customContentStates: customContentStates ?? this.customContentStates,
  );
}