Philosophy class

A single philosophy — guiding principle with examples.

Constructors

Philosophy({required String id, required String name, required String statement, String? rationale, List<PhilosophyExample> examples = const [], List<PhilosophyExample> counterexamples = const [], String? school, double? confidence, Map<String, dynamic> metadata = const {}})
const
Philosophy.fromJson(Map<String, dynamic> json)
Create from JSON.
factory

Properties

confidence double?
Confidence in the principle (0.0-1.0). Optional — defaults unset.
final
counterexamples List<PhilosophyExample>
Counter-examples — situations the principle warns against.
final
examples List<PhilosophyExample>
Applied examples illustrating the principle in action.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier.
final
metadata Map<String, dynamic>
Free-form metadata for host-specific extension.
final
name String
Short human-readable name.
final
rationale String?
Why this principle exists. Optional — kept lightweight.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
school String?
Optional school / category label (e.g. "engineering", "design").
final
statement String
The principle itself, expressed in one or two sentences.
final

Methods

copyWith({String? id, String? name, String? statement, String? rationale, List<PhilosophyExample>? examples, List<PhilosophyExample>? counterexamples, String? school, double? confidence, Map<String, dynamic>? metadata}) Philosophy
Create a copy with modifications.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited