Skip to content

Pass arguments into my application's main() #170

Open
@GoRadioGo

Description

@GoRadioGo

Is there a way to get arguments into my main(), similar to below ?
void main(List<String> arguments) async { print('args: $arguments'); // ... do my stuff ... }

I tried adding a "custom" command line option in the [flutter engine options] portion of the flutter-pi command line, but arguments was still an empty List.

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