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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user