copyWith method

TodoListResponseModel copyWith({
  1. num? success,
  2. String? message,
  3. Summary? summary,
  4. String? totalRecords,
  5. List<TodoList>? todoList,
})

Implementation

TodoListResponseModel copyWith({  num? success,
  String? message,
  Summary? summary,
  String? totalRecords,
  List<TodoList>? todoList,
}) => TodoListResponseModel(  success: success ?? _success,
  message: message ?? _message,
  summary: summary ?? _summary,
  totalRecords: totalRecords ?? _totalRecords,
  todoList: todoList ?? _todoList,
);