copyWithFunction property

Function? copyWithFunction
final

A Function to use when copyWith the annotated field.

Must be a top-level or static Function with two positional parameters compatible with the field being copyWith that returns the same type as the copyWith field. e.g: Type? function({Type? currentData, Type newData})

Implementation

final Function? copyWithFunction;