GraphQLArg constructor

const GraphQLArg(
  1. String key,
  2. dynamic value, {
  3. bool isRequired = false,
})

Implementation

const GraphQLArg(this.key, this.value, {this.isRequired = false})
    : assert(!isRequired || value != null,
          '"$key" must be required and not null');