Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. String
  4. substring abstract method
substring
description

substring abstract method

Stringsubstring(
  1. intstart, [
  2. int?end
])

The substring of this string fromstart, inclusive, toend, exclusive.

Example:

const string = 'dartlang';var result = string.substring(1); // 'artlang'result = string.substring(1, 4); // 'art'

Bothstart andend must be non-negative and no greater thanlength;end, if provided, must be greater than or equal tostart.

Implementation

String substring(int start, [int? end]);
  1. Dart
  2. dart:core
  3. String
  4. substring abstract method
String class

[8]ページ先頭

©2009-2025 Movatter.jp