Skip to content

Suggestion for getValueForScreenType method and similar ones #35

@warcayac

Description

@warcayac

Current case:

getValueForScreenType<Widget>(context: context, desktop: myWidget, mobile: anotherWidget, tablet: anotherWidget, watch: anotherWidget);

It could be improved with a parameter assigning a default value for other screen types being null , example:

getValueForScreenType<Widget>(context: context, desktop: myWidget, byDefault: anotherWidget);

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions