first property

File first

Implementation

File get first {
  if (this.length > 0) {
    return JS('File', '#[0]', this);
  }
  throw new StateError("No elements");
}