Skip to content

Type mismatch and return type error #1

@ketulrastogi

Description

@ketulrastogi

(day, month, year) {
DateTime _birthdate = DateTime.utc(year, month, day);
print('generated date time $_birthdate');
}

This function has a return type of 'String', but doesn't end with a return statement.
Try adding a return statement, or changing the return type to 'void'.dart(missing_return)

The argument type 'String Function(int, int, int)' can't be assigned to the parameter type 'String Function(int, int, int, bool)'.dart(argument_type_not_assignable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions