Skip to content

Commit

Permalink
fix: SerialPortList is now abstract (not sealed)
Browse files Browse the repository at this point in the history
This allows extension of SerialPortList outside of this project (e.g.
for mocking purposes in tests)
  • Loading branch information
ParaZera committed Feb 7, 2024
1 parent 9bf038f commit 4e0025a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/serial_port_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:meta/meta.dart';
import 'package:path/path.dart' as path;

@immutable
sealed class SerialPortList {
abstract class SerialPortList {
factory SerialPortList() {
if (Platform.isLinux) {
return const SerialPortListLinux();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_serial
description: Dart package that aims to provide a platform-independent serial port API.
version: 0.1.0-alpha.1
version: 0.1.0-alpha.2
license: MIT
repository: https://github.com/frickly-systems/dart_serial

Expand Down

0 comments on commit 4e0025a

Please sign in to comment.