push method Null safety

void push(
  1. Matrix matrix,
  2. num alpha,
  3. [BlendMode? blendMode]
)

Implementation

void push(Matrix matrix, num alpha, [BlendMode? blendMode]) {
  final cs1 = _currentContextState!;
  final cs2 = _currentContextState!.nextContextState;
  cs2.matrix.copyFromAndConcat(matrix, cs1.matrix);
  cs2.blendMode = blendMode ?? cs1.blendMode;
  cs2.alpha = alpha * cs1.alpha;
  _currentContextState = cs2;
}