KeyElement constructor

KeyElement(
  1. String kind,
  2. dynamic id
)

Implementation

KeyElement(this.kind, this.id) {
  if (id != null) {
    if (id is! int && id is! String) {
      throw ArgumentError("'id' must be either null, a String or an int");
    }
  }
}