getArguments static method

dynamic getArguments(
  1. BuildContext context
)

get passed data from screen

Implementation

static getArguments(BuildContext context) {
  return ModalRoute.of(context)!.settings.arguments;
}