MatrixShard class final

One of the count shares of the apps of a run of the matrix that jobs of CI check side by side, the one numbered index, from 1: the apps at the positions whose remainder after division by count is index - 1, so each app is in exactly one share and the apps of a share keep their order.

Constructors

MatrixShard(int index, int count)
Creates the share index of count.
const

Properties

count → int
The number of the shards.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
The number of the shard, from 1.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of<T>(List<T> items) → List<T>
The items of items that the shard takes, in their order.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

allOf(int count) → List<MatrixShard>
The shards 1 to count of count.
parse(String text) → MatrixShard?
The shard of text, <index>/<count> such as 2/3, or null if it is none: an index from 1 to the count.