all extension available use many extension to your flutter app
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
all_extensions: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:all_extensions/all_extensions.dart';
class Allextensions extends StatelessWidget {
const Allextensions({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
list name = <String>[kapil , ishwar ,ishwar,ishwar nameera, moshin, nishant arvind , kapil , kapil];
var duplicateremove = name.unique(
(x) => x,
);
return MaterialApp(
home: Scaffold(
body: Center(
child: ListView.builder(
itemCount: name.length,
itemBuilder: (context, i){
return ListTile(
title: Text("${name[i]}"),
);
},
),
)
),
);
}
}
all extension available use many extension
flutter list any duplicates data remove ex : list name = [kapil , ishwar ,ishwar,ishwar nameera, moshin, nishant arvind , kapil , kapil];
var duplicateremove = name.unique( (x) => x, );