- Valide o CPF com ou sem a mascara de CPF
- Não pode usar RegeX
import 'package:flutter_test/flutter_test.dart';| // ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
| void main() { | |
| print("_initialsFormatter ${_initialsFormatter('ana')}"); | |
| print("_initialsFormatter ${_initialsFormatter('Nonato De Sousa ')}"); | |
| print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); | |
| print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); | |
| print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); | |
| print("_initialsFormatter ${_initialsFormatter('Tabs Tabs Tabs Brenda Tabs')}"); | |
| print("_initialsFormatter ${_initialsFormatter('Débora beatriz Laís Taissa')}"); | |
| print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); |
| // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'package:flutter/material.dart'; | |
| void stamp(String s) => print('${DateTime.now()} | $s'); | |
| void main() async { | |
| AwaitState(); |
| const obj = { | |
| list: [ | |
| { param1: "gasgdgasdggasd", param2: 9 }, | |
| { param1: "gasgdgasdggasd", param2: 9 }, | |
| { param1: "gasgdgasdggasd", param2: 9 }, | |
| { param1: "gasgdgasdggasd", param2: 9 }, | |
| { param1: "gasgdgasdggasd", param2: 9 }, | |
| ], | |
| }; |
| { | |
| "name": "SFMC Collection", | |
| "packages": [ | |
| { | |
| "url": "https://github.com/salesforce-marketingcloud/sfmc-sdk-ios.git" | |
| },{ | |
| "url": "https://github.com/salesforce-marketingcloud/MarketingCloudSDK-iOS.git" | |
| }, | |
| ] | |
| } |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, |
| import { Injectable, Inject } from '@angular/core'; | |
| import { DOCUMENT } from '@angular/common'; | |
| import { DomController } from '@ionic/angular'; | |
| import { environment } from '../../environments/environment'; | |
| interface Theme { | |
| name: string; | |
| styles: ThemeStyle[]; | |
| } |
| void main() { | |
| List<String> contatos = ['Fausto Blanco Diniz', 'Juselania Silva', 'Angela Maria', 'Ana', '']; | |
| contatos = contatos.map( | |
| (contato){ | |
| String a = contato.split(' ').where((e) => e.isNotEmpty).toList().map( | |
| (c) => c.substring(0,1) | |
| ).join(''); | |
| // print(a); | |
| if (a.isEmpty || a == '' || a.length == 1) { | |
| return a; |
| void main() { | |
| print('Orange(0xFFEFB52D): ${0xFFEFB52D}'); | |
| print('Green(0xFF23C653): ${0xFF23C653}'); | |
| } |