encode method Null safety

Object encode()

Implementation

Object encode() {
  return <Object?>[
    geometry,
    fillSortKey,
    fillColor,
    fillOpacity,
    fillOutlineColor,
    fillPattern,
  ];
}