Last updated:
0 purchases
list major english words
List Major English Words #
This package is a dictionary of English words that includes the Major System number and definition for each word.
Getting started #
Update 'pubspec.yaml' 'dependencies' to include:
list_major_english_words: ^1.0.0
Then import into your your.dart file like so:
import 'package:list_major_english_words/list_major_english_words.dart';
Usage #
To use, declare a variable. Then access an element, and get it's major number and definition:
//GET WORDS
List<Map<String, List<String>>> dicWords = list_major_english_words;
//GET A WORD OBJECT:
Map<String, List<String>> dicObj = dicWords[0];
//GET FIRST OBJECT KEY:
String word = dicObj.keys.toList().first;
//GET MAJOR NUMNBER:
String majorNumber = dicObj[word]?[0];
//GET MAJOR DEFINITION:
String definition = dicObj[word]?[1];
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.