Skip to content

Commit d079035

Browse files
dnfieldlicheng
authored andcommitted
remove unnecessary [new from docs (flutter#8986)
1 parent 98d1d6d commit d079035

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

lib/ui/geometry.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class Size extends OffsetBase {
356356
///
357357
/// See also:
358358
///
359-
/// * [new Size.fromRadius], which is more convenient when the available size
359+
/// * [Size.fromRadius], which is more convenient when the available size
360360
/// is the radius of a circle.
361361
const Size.square(double dimension) : super(dimension, dimension);
362362

@@ -373,7 +373,7 @@ class Size extends OffsetBase {
373373
///
374374
/// See also:
375375
///
376-
/// * [new Size.square], which creates a square with the given dimension.
376+
/// * [Size.square], which creates a square with the given dimension.
377377
const Size.fromRadius(double radius) : super(radius * 2.0, radius * 2.0);
378378

379379
/// The horizontal extent of this size.
@@ -1658,7 +1658,7 @@ class RSTransform {
16581658
/// argument multiplied by the x-coordinate of the rotation point, minus the
16591659
/// `scos` argument multiplied by the y-coordinate of the rotation point.
16601660
///
1661-
/// The [new RSTransform.fromComponents] method may be a simpler way to
1661+
/// The [RSTransform.fromComponents] method may be a simpler way to
16621662
/// construct these values. However, if there is a way to factor out the
16631663
/// computations of the sine and cosine of the rotation so that they can be
16641664
/// reused over multiple calls to this constructor, it may be more efficient

lib/ui/painting.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,7 @@ class ImageFilter extends NativeFieldWrapperClass2 {
25862586

25872587
/// Creates an image filter that applies a matrix transformation.
25882588
///
2589-
/// For example, applying a positive scale matrix (see [new Matrix4.diagonal3])
2589+
/// For example, applying a positive scale matrix (see [Matrix4.diagonal3])
25902590
/// when used with [BackdropFilter] would magnify the background image.
25912591
ImageFilter.matrix(Float64List matrix4,
25922592
{ FilterQuality filterQuality = FilterQuality.low }) {
@@ -2624,8 +2624,8 @@ class Shader extends NativeFieldWrapperClass2 {
26242624
/// relative coordinates and can create a [Shader] representing the gradient
26252625
/// for a particular [Rect] on demand.
26262626
/// * [dart:ui.Gradient], the low-level class used when dealing with the
2627-
/// [Paint.shader] property directly, with its [new Gradient.linear] and [new
2628-
/// Gradient.radial] constructors.
2627+
/// [Paint.shader] property directly, with its [Gradient.linear] and
2628+
/// [Gradient.radial] constructors.
26292629
// These enum values must be kept in sync with SkShader::TileMode.
26302630
enum TileMode {
26312631
/// Edge is clamped to the final color.

lib/ui/text.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,8 @@ class ParagraphConstraints {
12031203
/// forced line break is placed after it (even if an explicit line break
12041204
/// follows).
12051205
///
1206-
/// The width influences how ellipses are applied. See the discussion at [new
1207-
/// ParagraphStyle] for more details.
1206+
/// The width influences how ellipses are applied. See the discussion at
1207+
/// [new ParagraphStyle] for more details.
12081208
///
12091209
/// This width is also used to position glyphs according to the [TextAlign]
12101210
/// alignment described in the [ParagraphStyle] used when building the
@@ -1354,8 +1354,8 @@ class Paragraph extends NativeFieldWrapperClass2 {
13541354
/// null, `ellipsis` was not null, and one of the lines exceeded the width
13551355
/// constraint.
13561356
///
1357-
/// See the discussion of the `maxLines` and `ellipsis` arguments at [new
1358-
/// ParagraphStyle].
1357+
/// See the discussion of the `maxLines` and `ellipsis` arguments at
1358+
/// [new ParagraphStyle].
13591359
bool get didExceedMaxLines native 'Paragraph_didExceedMaxLines';
13601360

13611361
/// Computes the size and position of each glyph in the paragraph.
@@ -1405,8 +1405,8 @@ class Paragraph extends NativeFieldWrapperClass2 {
14051405
/// Builds a [Paragraph] containing text with the given styling information.
14061406
///
14071407
/// To set the paragraph's alignment, truncation, and ellipsizing behavior, pass
1408-
/// an appropriately-configured [ParagraphStyle] object to the [new
1409-
/// ParagraphBuilder] constructor.
1408+
/// an appropriately-configured [ParagraphStyle] object to the
1409+
/// [new ParagraphBuilder] constructor.
14101410
///
14111411
/// Then, call combinations of [pushStyle], [addText], and [pop] to add styled
14121412
/// text to the object.

lib/ui/window.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Locale {
164164
///
165165
/// See also:
166166
///
167-
/// * [new Locale.fromSubtags], which also allows a [scriptCode] to be
167+
/// * [Locale.fromSubtags], which also allows a [scriptCode] to be
168168
/// specified.
169169
const Locale(
170170
this._languageCode, [
@@ -221,7 +221,7 @@ class Locale {
221221
///
222222
/// See also:
223223
///
224-
/// * [new Locale.fromSubtags], which describes the conventions for creating
224+
/// * [Locale.fromSubtags], which describes the conventions for creating
225225
/// [Locale] objects.
226226
String get languageCode => _deprecatedLanguageSubtagMap[_languageCode] ?? _languageCode;
227227
final String _languageCode;
@@ -319,7 +319,7 @@ class Locale {
319319
///
320320
/// See also:
321321
///
322-
/// * [new Locale.fromSubtags], which describes the conventions for creating
322+
/// * [Locale.fromSubtags], which describes the conventions for creating
323323
/// [Locale] objects.
324324
final String scriptCode;
325325

@@ -340,7 +340,7 @@ class Locale {
340340
///
341341
/// See also:
342342
///
343-
/// * [new Locale.fromSubtags], which describes the conventions for creating
343+
/// * [Locale.fromSubtags], which describes the conventions for creating
344344
/// [Locale] objects.
345345
String get countryCode => _deprecatedRegionSubtagMap[_countryCode] ?? _countryCode;
346346
final String _countryCode;

0 commit comments

Comments
 (0)