MIF_E31221213/lib/global_utils/belajar_utils/model/modeldraw.dart

24 lines
432 B
Dart

import 'package:flutter/material.dart';
class DrawingPoint {
int id;
List<Offset> offsets;
Color color;
double width;
DrawingPoint({
this.id = -1,
this.offsets = const [],
this.color = Colors.black,
this.width = 2,
});
DrawingPoint copyWith({List<Offset>? offsets}) {
return DrawingPoint(
id: id,
color: color,
width: width,
offsets: offsets ?? this.offsets,
);
}
}