Clean up some style in GestureDetector

* Rename GestureTapListener (and friends) To GestureTapCallback to match the
   other gesture callbacks.
 * Replace "ensureFoo" pattern with ??= operator.
This commit is contained in:
Adam Barth
2015-10-02 23:50:23 -07:00
parent e9aabcd5c6
commit 426ce9374e
8 changed files with 44 additions and 73 deletions

View File

@@ -37,13 +37,13 @@ class StockRow extends StatelessComponent {
static const double kHeight = 79.0;
GestureTapListener _getTapHandler(StockRowActionCallback callback) {
GestureTapCallback _getTapHandler(StockRowActionCallback callback) {
if (callback == null)
return null;
return () => callback(stock, key, arrowKey, symbolKey, priceKey);
}
GestureLongPressListener _getLongPressHandler(StockRowActionCallback callback) {
GestureLongPressCallback _getLongPressHandler(StockRowActionCallback callback) {
if (callback == null)
return null;
return () => callback(stock, key, arrowKey, symbolKey, priceKey);