strokeCap property Null safety

StrokeCap strokeCap

The kind of finish to place on the end of lines drawn when style is set to PaintingStyle.stroke.

Defaults to StrokeCap.butt, i.e. no caps.


StrokeCap get strokeCap {
  return StrokeCap.values[_data.getInt32(_kStrokeCapOffset, _kFakeHostEndian)];
void strokeCap= (StrokeCap value)


set strokeCap(StrokeCap value) {
  assert(value != null); // ignore: unnecessary_null_comparison
  final int encoded = value.index;
  _data.setInt32(_kStrokeCapOffset, encoded, _kFakeHostEndian);