24 lines
432 B
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,
|
|
);
|
|
}
|
|
} |