🎯【Dart】Stringをいろいろする2021/03/24に公開2021/03/25FlutterDarttech substring :一部を取り出す String alphabet = 'flutter'; void main() { print(alphabet.substring(0,3));//flu } replaceAll :対象すべてを置換 String flutter = 'flutter'; void main() { print(flutter.replaceAll('t','d'));//fludder } Discussion
Discussion