Skip to content

Commit

Permalink
fix analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Oct 25, 2024
1 parent 54e4e7c commit f65fc08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions flutter/lib/src/binding_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ class SentryWidgetsFlutterBinding extends WidgetsFlutterBinding
BindingBase.checkInstance(_instance);
static SentryWidgetsFlutterBinding? _instance;

// ignore: prefer_constructors_over_static_methods
/// Returns an instance of [SentryWidgetsFlutterBinding].
/// If no binding has yet been initialized, creates and initializes one.
///
/// If the binding was already initialized with a different implementation,
/// returns the existing [WidgetsBinding] instance instead.
static WidgetsBinding ensureInitialized() {
try {
if (SentryWidgetsFlutterBinding._instance == null) {
Expand All @@ -85,8 +89,7 @@ mixin SentryWidgetsBindingMixin on WidgetsBinding {
_frameTracker = null;
}

static void initializesFramesTracker(
SentryDelayedFramesTracker frameTracker) {
static void initializeFramesTracker(SentryDelayedFramesTracker frameTracker) {
_frameTracker ??= frameTracker;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FramesTrackingIntegration implements Integration<SentryFlutterOptions> {
SentryFlutterOptions options, Duration expectedFrameDuration) {
final framesTracker =
SentryDelayedFramesTracker(options, expectedFrameDuration);
SentryWidgetsBindingMixin.initializesFramesTracker(framesTracker);
SentryWidgetsBindingMixin.initializeFramesTracker(framesTracker);
final collector = SpanFrameMetricsCollector(
options,
framesTracker,
Expand Down

0 comments on commit f65fc08

Please sign in to comment.