Skip to content

Commit c4a8783

Browse files
Fix analyzer issues
1 parent 4a07798 commit c4a8783

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

analysis_options.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ linter:
3636
- avoid_private_typedef_functions
3737
- avoid_redundant_argument_values
3838
- avoid_renaming_method_parameters
39-
- avoid_returning_null
40-
- avoid_returning_null_for_future
4139
- avoid_returning_null_for_void
4240
- avoid_returning_this
4341
- avoid_single_cascade_in_expression_statements

lib/src/image/image.dart

+5-4
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,14 @@ class Image extends Iterable<Pixel> {
176176
/// Create an image from raw data in [bytes].
177177
///
178178
/// [format] defines the data type of pixel channel values. [Format].uint8
179-
/// is the most typical format for images, where each pixel value is an unsigned
180-
/// byte with values in the range [0, 255].
179+
/// is the most typical format for images, where each pixel value is an
180+
/// unsigned byte with values in the range [0, 255].
181181
///
182182
/// [rowStride] is the row stride, in bytes, of the source data [bytes].
183183
/// This may be different than the rowStride of the [Image], as some data
184-
/// sources align rows to different byte alignments and include padding. [byteOffset]
185-
/// can be specified to start reading the [bytes] data starting from that value.
184+
/// sources align rows to different byte alignments and include padding.
185+
/// [bytesOffset] can be specified to start reading the [bytes] data starting
186+
/// from that value.
186187
///
187188
/// [numChannels] can be used to specify the number of pixel channels in the
188189
/// [bytes] data, defaulting to 3.

0 commit comments

Comments
 (0)