Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix type '(int) => String?' is not a subtype of type '((int?) => Stri…
Browse files Browse the repository at this point in the history
…ng)?' in type cast
  • Loading branch information
joyhope committed May 20, 2022
1 parent 579669e commit 6f32b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts_common/lib/src/data/series.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Series<T, D> {
/// such usage.
///
/// Otherwise, [index] must be a valid subscript into a list of `series.length`.
typedef AccessorFn<R> = R Function(int? index);
typedef AccessorFn<R> = R? Function(int index);

typedef TypedAccessorFn<T, R> = R Function(T datum, int? index);

Expand Down

0 comments on commit 6f32b9e

Please sign in to comment.