IdArgs<R>.fromArgs constructor Null safety

IdArgs<R>.fromArgs(
  1. Map<String, dynamic> args
)

Implementation

IdArgs.fromArgs(this.args)
    : id = (args["id"] as String?) ?? illegalState("Missing id"),
      record = args["record"] as R?;