Skip to content

Commit

Permalink
Clean up Uint8List/Blob<->View interop
Browse files Browse the repository at this point in the history
  • Loading branch information
mqus committed Feb 23, 2020
1 parent 7aa1ef6 commit 75a1820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floor_generator/lib/processor/view_processor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ class ViewProcessor extends Processor<View> {
return '$parameterValue as String';
} else if (parameterType.isDartCoreInt) {
return '$parameterValue as int';
} else if (parameterType.getDisplayString() == 'Uint8List') {
return '$parameterValue';
} else if (parameterType.isUint8List) {
return '$parameterValue as Uint8List';
} else {
return '$parameterValue as double'; // must be double
}
Expand Down

0 comments on commit 75a1820

Please sign in to comment.