push method

void push(
  1. T element
)

Appends an element to the end of the Vec. Equivalent to add.

Implementation

@pragma('vm:prefer-inline')
void push(T element) => add(element);