kawal7415

some minor code reduction

@@ -686,14 +686,11 @@ class _GetBarState<K extends Object> extends State<GetBar> @@ -686,14 +686,11 @@ class _GetBarState<K extends Object> extends State<GetBar>
686 } 686 }
687 687
688 Widget _getTitleText() { 688 Widget _getTitleText() {
689 - return widget.titleText != null  
690 - ? widget.titleText  
691 - : Text( 689 + return widget.titleText ??
  690 + Text(
692 widget.title ?? "", 691 widget.title ?? "",
693 style: TextStyle( 692 style: TextStyle(
694 - fontSize: 16.0,  
695 - color: Colors.white,  
696 - fontWeight: FontWeight.bold), 693 + fontSize: 16.0, color: Colors.white, fontWeight: FontWeight.bold),
697 ); 694 );
698 } 695 }
699 696
@@ -705,11 +702,7 @@ class _GetBarState<K extends Object> extends State<GetBar> @@ -705,11 +702,7 @@ class _GetBarState<K extends Object> extends State<GetBar>
705 } 702 }
706 703
707 FlatButton _getMainActionButton() { 704 FlatButton _getMainActionButton() {
708 - if (widget.mainButton != null) {  
709 return widget.mainButton; 705 return widget.mainButton;
710 - } else {  
711 - return null;  
712 - }  
713 } 706 }
714 } 707 }
715 708