Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
esc_pos_print_plus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dio Maulana
esc_pos_print_plus
Commits
32a5839a
Commit
32a5839a
authored
Jun 12, 2019
by
Andrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Printer constructor made private.
parent
db0da480
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
printer.dart
lib/src/printer.dart
+2
-2
No files found.
lib/src/printer.dart
View file @
32a5839a
...
@@ -16,7 +16,7 @@ import 'pos_string.dart';
...
@@ -16,7 +16,7 @@ import 'pos_string.dart';
/// Network printer
/// Network printer
class
Printer
{
class
Printer
{
Printer
(
this
.
_socket
)
{
Printer
.
_internal
(
this
.
_socket
)
{
reset
();
reset
();
}
}
...
@@ -29,7 +29,7 @@ class Printer {
...
@@ -29,7 +29,7 @@ class Printer {
static
Future
<
Printer
>
connect
(
String
host
,
static
Future
<
Printer
>
connect
(
String
host
,
{
int
port
=
9100
,
Duration
timeout
})
{
{
int
port
=
9100
,
Duration
timeout
})
{
return
Socket
.
connect
(
host
,
port
,
timeout:
timeout
).
then
((
socket
)
{
return
Socket
.
connect
(
host
,
port
,
timeout:
timeout
).
then
((
socket
)
{
return
Printer
(
socket
);
return
Printer
.
_internal
(
socket
);
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment