remove unnecessary [new from docs (flutter/engine#8986)

This commit is contained in:
Dan Field
2019-05-16 19:14:10 -07:00
committed by GitHub
parent 5c4c8d9f27
commit d99581a8ea
4 changed files with 16 additions and 16 deletions

View File

@@ -356,7 +356,7 @@ class Size extends OffsetBase {
///
/// See also:
///
/// * [new Size.fromRadius], which is more convenient when the available size
/// * [Size.fromRadius], which is more convenient when the available size
/// is the radius of a circle.
const Size.square(double dimension) : super(dimension, dimension);
@@ -373,7 +373,7 @@ class Size extends OffsetBase {
///
/// See also:
///
/// * [new Size.square], which creates a square with the given dimension.
/// * [Size.square], which creates a square with the given dimension.
const Size.fromRadius(double radius) : super(radius * 2.0, radius * 2.0);
/// The horizontal extent of this size.
@@ -1658,7 +1658,7 @@ class RSTransform {
/// argument multiplied by the x-coordinate of the rotation point, minus the
/// `scos` argument multiplied by the y-coordinate of the rotation point.
///
/// The [new RSTransform.fromComponents] method may be a simpler way to
/// The [RSTransform.fromComponents] method may be a simpler way to
/// construct these values. However, if there is a way to factor out the
/// computations of the sine and cosine of the rotation so that they can be
/// reused over multiple calls to this constructor, it may be more efficient

View File

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

View File

@@ -1203,8 +1203,8 @@ class ParagraphConstraints {
/// forced line break is placed after it (even if an explicit line break
/// follows).
///
/// The width influences how ellipses are applied. See the discussion at [new
/// ParagraphStyle] for more details.
/// The width influences how ellipses are applied. See the discussion at
/// [new ParagraphStyle] for more details.
///
/// This width is also used to position glyphs according to the [TextAlign]
/// alignment described in the [ParagraphStyle] used when building the
@@ -1354,8 +1354,8 @@ class Paragraph extends NativeFieldWrapperClass2 {
/// null, `ellipsis` was not null, and one of the lines exceeded the width
/// constraint.
///
/// See the discussion of the `maxLines` and `ellipsis` arguments at [new
/// ParagraphStyle].
/// See the discussion of the `maxLines` and `ellipsis` arguments at
/// [new ParagraphStyle].
bool get didExceedMaxLines native 'Paragraph_didExceedMaxLines';
/// Computes the size and position of each glyph in the paragraph.
@@ -1405,8 +1405,8 @@ class Paragraph extends NativeFieldWrapperClass2 {
/// Builds a [Paragraph] containing text with the given styling information.
///
/// To set the paragraph's alignment, truncation, and ellipsizing behavior, pass
/// an appropriately-configured [ParagraphStyle] object to the [new
/// ParagraphBuilder] constructor.
/// an appropriately-configured [ParagraphStyle] object to the
/// [new ParagraphBuilder] constructor.
///
/// Then, call combinations of [pushStyle], [addText], and [pop] to add styled
/// text to the object.

View File

@@ -164,7 +164,7 @@ class Locale {
///
/// See also:
///
/// * [new Locale.fromSubtags], which also allows a [scriptCode] to be
/// * [Locale.fromSubtags], which also allows a [scriptCode] to be
/// specified.
const Locale(
this._languageCode, [
@@ -221,7 +221,7 @@ class Locale {
///
/// See also:
///
/// * [new Locale.fromSubtags], which describes the conventions for creating
/// * [Locale.fromSubtags], which describes the conventions for creating
/// [Locale] objects.
String get languageCode => _deprecatedLanguageSubtagMap[_languageCode] ?? _languageCode;
final String _languageCode;
@@ -319,7 +319,7 @@ class Locale {
///
/// See also:
///
/// * [new Locale.fromSubtags], which describes the conventions for creating
/// * [Locale.fromSubtags], which describes the conventions for creating
/// [Locale] objects.
final String scriptCode;
@@ -340,7 +340,7 @@ class Locale {
///
/// See also:
///
/// * [new Locale.fromSubtags], which describes the conventions for creating
/// * [Locale.fromSubtags], which describes the conventions for creating
/// [Locale] objects.
String get countryCode => _deprecatedRegionSubtagMap[_countryCode] ?? _countryCode;
final String _countryCode;