first method

T? first()

Returns the first item in the collection, or null if there is none. @return {T|null} This returns null if there are no items in the collection.

Implementation

T? first() => _i4.callMethod(
      this,
      'first',
      [],
    );