Kural class
Represents a single Thirukural (couplet) with all its metadata.
A Kural contains the original Tamil text, explanations in both Tamil and English, and information about which section (Paal) and chapter (Adhikaram) it belongs to.
Example:
final kural = Kural(
kuralNumber: 1,
kural: 'அகர முதல எழுத்தெல்லாம் ஆதி பகவன் முதற்றே உலகு',
tamilSectionName: 'அறத்துப்பால்',
englishSectionName: 'Virtue',
tamilChapterName: 'கடவுள் வாழ்த்து',
englishChapterName: 'The Praise of God',
tamilExplanation: 'அகர எழுத்து...',
englishExplanation: 'As the letter A is the first...',
);
Constructors
- Kural({int? kuralNumber, String? kural, String? tamilSectionName, String? englishSectionName, String? tamilChapterName, String? englishChapterName, String? tamilExplanation, String? englishExplanation})
- Creates a new Kural instance.
-
Kural.fromJson(Map<
String, dynamic> json) -
Creates a Kural from a JSON map.
factory
Properties
- englishChapterName → String?
-
The English name of the chapter (Adhikaram) this Kural belongs to.
final
- englishExplanation → String?
-
The explanation of this Kural in English.
final
- englishSectionName → String?
-
The English name of the section (Paal) this Kural belongs to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kural → String?
-
The original Tamil text of the Kural couplet.
final
- kuralNumber → int?
-
The unique number of this Kural (1-1330).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tamilChapterName → String?
-
The Tamil name of the chapter (Adhikaram) this Kural belongs to.
final
- tamilExplanation → String?
-
The explanation of this Kural in Tamil.
final
- tamilSectionName → String?
-
The Tamil name of the section (Paal) this Kural belongs to.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this Kural to a JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited