Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Use a public final field (#84)
Browse files Browse the repository at this point in the history
There is no setter, so no need for a private field and public forwarding
getter.
  • Loading branch information
natebosch authored Jun 16, 2022
1 parent 4b0806f commit 805e653
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 3.0.3-dev

## 3.0.2

* Switch to using `package:lints`.
Expand Down
5 changes: 2 additions & 3 deletions lib/src/parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ class Parameters {
///
/// If this is accessed for a [Parameter] that was not passed, the request
/// will be automatically rejected. To avoid this, use [Parameter.valueOr].
dynamic get value => _value;
final dynamic _value;
final dynamic value;

Parameters(this.method, this._value);
Parameters(this.method, this.value);

/// Returns a single parameter.
///
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: json_rpc_2
version: 3.0.2
version: 3.0.3-dev
description: >-
Utilities to write a client or server using the JSON-RPC 2.0 spec.
repository: https://github.com/dart-lang/json_rpc_2
Expand Down

0 comments on commit 805e653

Please sign in to comment.