toMap method Null safety

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    "hideTitleBar": hideTitleBar,
    "toolbarTopFixedTitle": toolbarTopFixedTitle,
    "closeOnCannotGoBack": closeOnCannotGoBack,
    "allowGoBackWithBackButton": allowGoBackWithBackButton,
    "shouldCloseOnBackButtonPressed": shouldCloseOnBackButtonPressed,
  };
}