FSUtils class
String manipulation and text processing utilities
Constructors
- FSUtils()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
capitalize(
String text) → String - Capitalize first letter of a string
-
capitalizeWords(
String text) → String - Capitalize each word in a string (Title Case)
-
debounce(
VoidCallback func, {Duration delay = const Duration(milliseconds: 300)}) → VoidCallback - Debounce function for limiting frequent function calls
-
debounceWith<
T> (void func(T), {Duration delay = const Duration(milliseconds: 300)}) → dynamic Function(T) - Generic debounce function that passes value to callback
-
formatFileSize(
int bytes) → String - Format file size in human-readable format
-
generateId(
{int length = 8}) → String - Generate a random alphanumeric ID
-
safeToString(
dynamic value) → String - Safe string conversion with null handling
-
throttle(
VoidCallback func, {Duration delay = const Duration(milliseconds: 300)}) → VoidCallback - Throttle function for limiting call frequency
-
truncate(
String text, int maxLength) → String - Truncate text with ellipsis and bounds checking