From 50c401de12070a395434d1c0078033b58e702346 Mon Sep 17 00:00:00 2001 From: Sergey Molchanovsky Date: Tue, 7 Nov 2023 10:49:19 +0300 Subject: [PATCH] revert formatting --- flutter_mobx/lib/src/observer.dart | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/flutter_mobx/lib/src/observer.dart b/flutter_mobx/lib/src/observer.dart index ce778c2c..95398371 100644 --- a/flutter_mobx/lib/src/observer.dart +++ b/flutter_mobx/lib/src/observer.dart @@ -61,7 +61,11 @@ class Observer extends StatelessObserverWidget { final String? debugConstructingStackFrame; @override - String getName() => super.getName() + (debugConstructingStackFrame != null ? '\n$debugConstructingStackFrame' : ''); + String getName() => + super.getName() + + (debugConstructingStackFrame != null + ? '\n$debugConstructingStackFrame' + : ''); @override Widget build(BuildContext context) => builderOptimized?.call(context, child) ?? builder!.call(context); @@ -92,10 +96,17 @@ class Observer extends StatelessObserverWidget { // regex) .skip(3) // Search for the first non-constructor frame - .firstWhere((frame) => !_constructorStackFramePattern.hasMatch(frame), orElse: () => ''); - - final stackFrameCore = _stackFrameCleanUpPattern.firstMatch(rawStackFrame)?.group(1); - final cleanedStackFrame = stackFrameCore == null ? null : 'Observer constructed from: $stackFrameCore'; + .firstWhere( + (frame) => + !_constructorStackFramePattern.hasMatch(frame), + orElse: () => ''); + + final stackFrameCore = + _stackFrameCleanUpPattern.firstMatch(rawStackFrame)?.group(1); + final cleanedStackFrame = + stackFrameCore == null + ? null + : 'Observer constructed from: $stackFrameCore'; stackFrame = cleanedStackFrame; }