Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

remove [new from docs #8986

Merged
merged 8 commits into from
May 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ui/geometry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/painting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions lib/ui/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1346,8 +1346,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].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is ok, right? I just moved new down to the next line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. sorry

bool get didExceedMaxLines native 'Paragraph_didExceedMaxLines';

/// Computes the size and position of each glyph in the paragraph.
Expand Down Expand Up @@ -1397,8 +1397,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.
Expand Down
8 changes: 4 additions & 4 deletions lib/ui/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand All @@ -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;
Expand Down