Skip to content

Suggestion for getValueForScreenType method and similar ones #35

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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