'resume'.replaceAll('e', 'é'); // it returns the string 'résumé' newString = 'resume'; newString.replaceAll('e', 'é'); // it returns the string 'résumé' // returns 2019-06-20 00:00:00.000 as dateTime object DateTime eventDate = DateTime.now(); // returns 2019-06-20 as string Text('${eventDate.toString().replaceAll(' 00:00:00.000', '')}') ‘resume’.replaceAll(RegExp(r’e’), ‘é’); // ‘résumé’
Flutter replace 字符串
9 min read