Category class

Categoria de blog — hierárquica como no WordPress (ex.: Tutoriais/Flutter). O segments guarda os nomes; slugPath os slugs correspondentes.

Constructors

Category(List<String> segments)
Category.parse(String raw)
Cria a categoria a partir de uma string A/B/C do frontmatter.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
Chave única para deduplicação/igualdade.
no setter
name String
Nome exibido (último segmento).
no setter
path String
Caminho da página de arquivo (ex.: /blog/categoria/tutoriais/flutter).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<String>
Nomes legíveis da hierarquia (ex.: ['Tutoriais', 'Flutter']).
final
slugPath List<String>
Slugs correspondentes (ex.: ['tutoriais', 'flutter']).
final

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.
override