copyWith method

ContentStateSettings copyWith({
  1. bool? contentStatesAllowed,
  2. bool? customContentStatesAllowed,
  3. bool? spaceContentStatesAllowed,
  4. List<ContentState>? spaceContentStates,
})

Implementation

ContentStateSettings copyWith(
    {bool? contentStatesAllowed,
    bool? customContentStatesAllowed,
    bool? spaceContentStatesAllowed,
    List<ContentState>? spaceContentStates}) {
  return ContentStateSettings(
    contentStatesAllowed: contentStatesAllowed ?? this.contentStatesAllowed,
    customContentStatesAllowed:
        customContentStatesAllowed ?? this.customContentStatesAllowed,
    spaceContentStatesAllowed:
        spaceContentStatesAllowed ?? this.spaceContentStatesAllowed,
    spaceContentStates: spaceContentStates ?? this.spaceContentStates,
  );
}