Skip to content

Commit

Permalink
fix: Remove unsupported type
Browse files Browse the repository at this point in the history
  • Loading branch information
koji-1009 committed Feb 25, 2024
1 parent f34bfbe commit 1e992d3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/src/crypto_subtle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,6 @@ TypedData getRandomValues(TypedData array) {
} else if (array is Int32List) {
final result = window.crypto.getRandomValues(array.toJS) as JSInt32Array;
return result.toDart;
} else if (array is Float32List) {
final result = window.crypto.getRandomValues(array.toJS) as JSFloat32Array;
return result.toDart;
} else if (array is Float64List) {
final result = window.crypto.getRandomValues(array.toJS) as JSFloat64Array;
return result.toDart;
} else {
throw ArgumentError.value(
array,
Expand Down

0 comments on commit 1e992d3

Please sign in to comment.