copyWith method

FunctionCall copyWith({
  1. Object? id = unsetCopyWithValue,
  2. Object? name = unsetCopyWithValue,
  3. Object? args = unsetCopyWithValue,
})

Creates a copy with replaced values.

Implementation

FunctionCall copyWith({
  Object? id = unsetCopyWithValue,
  Object? name = unsetCopyWithValue,
  Object? args = unsetCopyWithValue,
}) {
  return FunctionCall(
    id: id == unsetCopyWithValue ? this.id : id as String?,
    name: name == unsetCopyWithValue ? this.name : name! as String,
    args: args == unsetCopyWithValue
        ? this.args
        : args as Map<String, dynamic>?,
  );
}