scrabble_word_checker 0.0.1
scrabble_word_checker: ^0.0.1 copied to clipboard
Check words with the official scrabble dictionary.
Scrabble Word Checker #
Installation #
Add the dependency to your pubspec.yaml file.
dependencies:
scrabble_word_checker: any
Get dependencies
$ flutter pub get
Usage #
To use this package, first import in anywhere in your code
import 'package:scrabble_word_checker/scrabble_word_checker.dart';
Initialise the word checker class
final ScrabbleWordChecker wordChecker = ScrabbleWordChecker();
Check for any word
bool isCorrect1 = wordChecker.isValidWord("aa"); // Expected: true
bool isCorrect2 = wordChecker.isValidWord("a"); // Expected: false
Licence #
Scrabble Word Checker is open source and licenced under Apache 2.0. You're free to use it for personal purpose, you can also contribute by adding amazing futures.😊