IdArgs<R>.of constructor

IdArgs<R>.of(
  1. dynamic args
)

Implementation

factory IdArgs.of(final dynamic args) {
  if (args is IdArgs<R>) return args;
  if (args is Map<String, dynamic>) return IdArgs.fromArgs(args);
  if (args is String) return IdArgs.fromId(args, args: {});
  return illegalState("Can't extract keyArgs");
}