Line data Source code
1 : // Copyright 2023 The terCAD team. All rights reserved. 2 : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file. 3 : 4 : abstract interface class InterfaceProtocol { 5 : final Function callbackMessage; 6 : final Function callbackProgress; 7 : 8 0 : InterfaceProtocol({ 9 : required this.callbackMessage, 10 : required this.callbackProgress, 11 : }); 12 : 13 : Future<void> save(dynamic data); 14 : Future<void> load(dynamic data, [bool isEncrypted = true]); 15 : }