Skip to content

Commit

Permalink
Switch from iterable.whereNotNull() to .nonNulls
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Oct 29, 2024
1 parent 8fa580c commit bad4357
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/src/helpers/device_info_io.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:io';

import 'package:collection/collection.dart';
import 'package:data_size/data_size.dart';
import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/foundation.dart';
Expand Down Expand Up @@ -32,19 +31,19 @@ Future<List<DiagnosticsNode>> _getDiagnosticsAndroid() async {
),
StringProperty(
'Supported 32-Bit ABIs',
info.supported32BitAbis.whereNotNull().join(', '),
info.supported32BitAbis.nonNulls.join(', '),
),
StringProperty(
'Supported 64-Bit ABIs',
info.supported64BitAbis.whereNotNull().join(', '),
info.supported64BitAbis.nonNulls.join(', '),
),
StringProperty(
'Supported ABIs',
info.supportedAbis.whereNotNull().join(', '),
info.supportedAbis.nonNulls.join(', '),
),
StringProperty(
'System Features',
info.systemFeatures.whereNotNull().join(', '),
info.systemFeatures.nonNulls.join(', '),
level: DiagnosticLevel.fine,
),
],
Expand Down

0 comments on commit bad4357

Please sign in to comment.