kawal7415

some minor code reduction

... ... @@ -686,14 +686,11 @@ class _GetBarState<K extends Object> extends State<GetBar>
}
Widget _getTitleText() {
return widget.titleText != null
? widget.titleText
: Text(
return widget.titleText ??
Text(
widget.title ?? "",
style: TextStyle(
fontSize: 16.0,
color: Colors.white,
fontWeight: FontWeight.bold),
fontSize: 16.0, color: Colors.white, fontWeight: FontWeight.bold),
);
}
... ... @@ -705,11 +702,7 @@ class _GetBarState<K extends Object> extends State<GetBar>
}
FlatButton _getMainActionButton() {
if (widget.mainButton != null) {
return widget.mainButton;
} else {
return null;
}
}
}
... ...