LineElement constructor Null safety

LineElement(
  1. {required Offset lineParams,
  2. required bool relative}
)

lineParams (Offset) REQUIRED : Line x and y if not relative, otherwise line dx and dy. relative (bool) REQUIRED :Is it a relative line ?

Implementation

LineElement({required this.lineParams, required this.relative});