tree_data_model

Creator: coderz1093

Last updated:

0 purchases

tree_data_model Image
tree_data_model Images
Add to Cart

Description:

tree data model

A model representing tree structure.
Features #

recursively defined
JSON serializable
infinitely extensible
crud leaf
crud node

Usage #
typedef TaskList = Tree<Task, Header>;
typedef Task = Leaf<Task, Header>;
typedef Folder = Node<Task, Header>;

final TaskList todos =
Folder(id: 'todos', value: Header(title: 'Todays todo'), subTrees: [
Folder(
id: 'exercise',
value: Header(
title: 'Exercise',
description: 'For brain Helthy',
),
subTrees: [
Task(id: 'running_task', value: Task(title: 'Running', completed: false)),
Task(id: 'squat_task', value: Task(title: 'Squat', completed: false)),
],
),
Task(id: 'study_math_task', value: Task(title: 'Study math', completed: false))
]);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.