parseEntryArgs static method

EntryArguments parseEntryArgs(
  1. List<String>? args
)

Implementation

static EntryArguments parseEntryArgs(List<String>? args) {
  if (args == null || args.isEmpty) {
    return EntryArguments(null, null);
  }
  final jsonObject = args.isNotEmpty ? jsonDecode(args.first) : {};
  String? initialRoute = jsonObject['initialRoute'];
  Map<String, dynamic>? routeArguments = jsonObject['routeArguments'];
  return EntryArguments(initialRoute, routeArguments);
}