toMap method Null safety

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() {
  return <String, dynamic>{
    'page': page,
    'section': section,
  };
}