flutter-ddd-firebase-course icon indicating copy to clipboard operation
flutter-ddd-firebase-course copied to clipboard

Error on TodoItemDto factory

Open shakirkasmani opened this issue 5 years ago • 0 comments

factory TodoItemDto.fromDomain(TodoItem todoItem) {
    return TodoItemDto(
      // getting error here
      id: todoItem.id.getOrCrash(),
      name: todoItem.name.getOrCrash(),
      done: todoItem.done,
    );
  }

The argument type 'dynamic' can't be assigned to the parameter type 'String'.

shakirkasmani avatar Jul 01 '20 01:07 shakirkasmani