copyWith method

GetSuggestedFileName copyWith({
  1. int? fileId,
  2. String? directory,
})

Copy model with modified properties.

Properties:

  • file_id: Identifier of the file
  • directory: Directory in which the file is supposed to be saved

Implementation

GetSuggestedFileName copyWith({
  int? fileId,
  String? directory,
}) =>
    GetSuggestedFileName(
      fileId: fileId ?? this.fileId,
      directory: directory ?? this.directory,
    );