Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
maRci002 committed Mar 27, 2024
1 parent 9392932 commit 0caacd8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public class BackGestureChannel {
* framework.
*/
public BackGestureChannel(@NonNull DartExecutor dartExecutor) {
this.channel = new MethodChannel(dartExecutor, "flutter/backgesture", StandardMethodCodec.INSTANCE);
this.channel =
new MethodChannel(dartExecutor, "flutter/backgesture", StandardMethodCodec.INSTANCE);
channel.setMethodCallHandler(defaultHandler);
}

Expand Down Expand Up @@ -120,9 +121,7 @@ private Map<String, Object> backEventToJsonMap(@NonNull BackEvent backEvent) {
Map<String, Object> message = new HashMap<>(3);
final float x = backEvent.getTouchX();
final float y = backEvent.getTouchY();
final Object touchOffset = (Float.isNaN(x) || Float.isNaN(y))
? null
: Arrays.asList(x, y);
final Object touchOffset = (Float.isNaN(x) || Float.isNaN(y)) ? null : Arrays.asList(x, y);
message.put("touchOffset", touchOffset);
message.put("progress", backEvent.getProgress());
message.put("swipeEdge", backEvent.getSwipeEdge());
Expand Down

0 comments on commit 0caacd8

Please sign in to comment.